input: from typing import List
  
  def find_customer_by_name(customers: List[dict], name: str) -> dict:
      """ Find and return customer data by customer name from a list of customer dictionaries.
      Each customer dictionary contains at least 'name' as a key.
      >>> find_customer_by_name([{'name': 'Alice', 'age': 25}, {'name': 'Bob', 'age': 30}], 'Alice')
      {'name': 'Alice', 'age': 25}
      >>> find_customer_by_name([{'name': 'Charlie', 'age': 22}], 'Alice')
      {}
      """
      for customer in customers:
          if customer['name'] == name:
              return customer
      return {}
output:     for customer in customers:
          if customer['name'] == name:
              return customer
      return {}