input: Write a python function to create a 2D scatter plot with age on the x-axis, income on the y-axis, and colors representing sex. 
  assert isinstance(create_scatter_plot([15, 17, 20], ["female", "male", "female"], [20000, 25000, 27000]), plt.Figure)
  assert isinstance(create_scatter_plot([28, 33, 35], ["male", "female", "male"], [26000, 29000, 33000]), plt.Figure)
  assert isinstance(create_scatter_plot([37, 45, 50], ["male", "female", "female"], [31000, 50000, 52000]), plt.Figure)
output: import matplotlib.pyplot as plt
  
  def create_scatter_plot(ages, sexes, incomes):
      colors = {'male': 'blue', 'female': 'red'}
      plt.figure(figsize=(10, 6))
      for age, sex, income in zip(ages, sexes, incomes):
          plt.scatter(age, income, color=colors[sex], label=sex if sex not in plt.gca().get_legend_handles_labels()[1] else "")
      plt.xlabel('Age')
      plt.ylabel('Income')
      plt.title('Age vs Income Scatter Plot')
      plt.legend()
      plt.grid(True)
      return plt.gcf()