input: def search_customer_data(customers: List[dict], name: str) -> dict:
      """ Searches for a customer in a list of customer dictionaries based on their name.
      Returns the customer dictionary if found, otherwise returns None.
      >>> search_customer_data([{'name': 'John Doe', 'id': 1}, {'name': 'Jane Doe', 'id': 2}], 'John Doe')
      {'name': 'John Doe', 'id': 1}
      >>> search_customer_data([{'name': 'John Doe', 'id': 1}, {'name': 'Jane Doe', 'id': 2}], 'Alice')
      None
      """
output:     for customer in customers:
          if customer['name'] == name:
              return customer
      return None