[USER (data scientist)]:Great! Please create pie charts that display loan approval rates, which is calculated as the proportion of "good" decisions in each customer segment, for the specified customer segments: middle-aged customers aged 40-59, those with a stable employment history, and those with a good or excellent credit history. Consider customers with an employment duration of 7 years or more, or those with an employment duration between 4 and 7 years, as having stable employment.
My template of code snippet is:

---BEGIN CODE TEMPLATE---

import pandas as pd  
import matplotlib.pyplot as plt  
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

# Plot pie charts      
fig, axes = create_subplots(1, 3, figsize=(18, 6))  
  
# YOUR SOLUTION BEGIN:
<code2>
[COMPLETE YOUR CODE]
</code2>
# YOUR SOLUTION END

# save data
save_plot('pred_result/pieplot.png')     
show_plots()

---END CODE TEMPLATE---

[YOU (AI assistant)]: Sure, I can help you with that.
'''
import pandas as pd  
import matplotlib.pyplot as plt  
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:
