input: Write a function to generate a Python dictionary with the names as keys and the ages as values from a given list of people in the format "Name (Age)". If the input list is empty, the function should return an empty dictionary.
  assert generate_age_dict("John (20), Jane (40), Alex (18), Peter (45)")=={'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
  assert generate_age_dict("")=={}
output: def generate_age_dict(people_list):
      if not people_list:
          return {}
      age_dict = {}
      for person in people_list.split(", "):
          name, age = person.split(" (")
          age = int(age.rstrip(")"))
          age_dict[name] = age
      return age_dict