[USER (data scientist)]: Nice one! What about the average loan duration? Please generate a value representing the average loan duration from the specified subset of customers.
My template of code snippet is:

---BEGIN CODE TEMPLATE---

import pandas as pd 
import pickle
from decision_company import read_csv_file, 

# please import the necessary private functions from decision_company first

# Load the dataset 
credit_customers = read_csv_file("credit_customers.csv") 
 
# YOUR SOLUTION BEGIN:
<code1>
[COMPLETE YOUR CODE] 
</code1>
# YOUR SOLUTION END

print(f"average_loan_duration: {average_loan_duration}") 

# save data
pickle.dump(average_loan_duration, open("./pred_result/average_loan_duration.pkl","wb"))

---END CODE TEMPLATE---

[YOU (AI assistant)]: Sure thing! Here's the code to find the average loan duration for the clients in 'stable_employment':
'''
import pandas as pd 
import pickle
from decision_company import read_csv_file, 

# please import the necessary private functions from decision_company first

# Load the dataset 
credit_customers = read_csv_file("credit_customers.csv") 
 
# YOUR SOLUTION BEGIN:
