input: Write a python function to categorize customers by age and gender.
  assert categorize_customers([{'age': 25, 'gender': 'Male'}, {'age': 17, 'gender': 'Female'}, {'age': 65, 'gender': 'Other'}]) == [{'age': 25, 'gender': 'Male', 'age_category': 'Middle-aged', 'gender_category': 'Male'}, {'age': 17, 'gender': 'Female', 'age_category': 'Young', 'gender_category': 'Female'}, {'age': 65, 'gender': 'Other', 'age_category': 'Senior', 'gender_category': 'Other'}]
  assert categorize_customers([{'age': 30, 'gender': 'Female'}, {'age': 75, 'gender': 'Male'}]) == [{'age': 30, 'gender': 'Female', 'age_category': 'Middle-aged', 'gender_category': 'Female'}, {'age': 75, 'gender': 'Male', 'age_category': 'Senior', 'gender_category': 'Male'}]
  assert categorize_customers([{'age': 10, 'gender': 'Male'}, {'age': 45, 'gender': 'Female'}, {'age': 60, 'gender': 'Female'}]) == [{'age': 10, 'gender': 'Male', 'age_category': 'Young', 'gender_category': 'Male'}, {'age': 45, 'gender': 'Female', 'age_category': 'Middle-aged', 'gender_category': 'Female'}, {'age': 60, 'gender': 'Female', 'age_category': 'Middle-aged', 'gender_category': 'Female'}]
output: def categorize_customers(customers):
      for customer in customers:
          age = customer['age']
          gender = customer['gender']
          
          if age < 18:
              customer['age_category'] = 'Young'
          elif age < 60:
              customer['age_category'] = 'Middle-aged'
          else:
              customer['age_category'] = 'Senior'
          
          if gender == 'Male':
              customer['gender_category'] = 'Male'
          elif gender == 'Female':
              customer['gender_category'] = 'Female'
          else:
              customer['gender_category'] = 'Other'
      
      return customers