input: Write a function to create a Python dictionary with the names from the given list as keys and the ages as values. The function should take a single input string where each person is represented in the format "Name (Age)" and separated by commas. If the input string is empty, return an empty dictionary.
  assert create_people_dict("John (20), Jane (40), Alex (18), Peter (45)")=={'John': 20, 'Jane': 40, 'Alex': 18, 'Peter': 45}
  assert create_people_dict("Sam (30), Tom (25)")=={'Sam': 30, 'Tom': 25}
  assert create_people_dict("Alice (55)")=={'Alice': 55}
  assert create_people_dict("")=={}
output: def create_people_dict(input_string):
      if not input_string:
          return {}
      people_list = input_string.split(", ")
      people_dict = {}
      for person in people_list:
          name, age = person.split(" (")
          age = int(age.rstrip(")"))
          people_dict[name] = age
      return people_dict