input: Write a python function to extract data from a list of dictionaries.
  assert extract_data([{"name": "Alice", "age": 30, "hobby": "reading"}, {"name": "Bob", "age": 25, "hobby": "gaming"}]) == (["Alice", "Bob"], [30, 25], ["reading", "gaming"])
  assert extract_data([{"name": "John", "age": 40, "hobby": "hiking"}, {"name": "Jane", "age": 35, "hobby": "swimming"}]) == (["John", "Jane"], [40, 35], ["hiking", "swimming"])
  assert extract_data([{"name": "Tom", "age": 20, "hobby": "painting"}, {"name": "Lucy", "age": 22, "hobby": "dancing"}]) == (["Tom", "Lucy"], [20, 22], ["painting", "dancing"])
output: def extract_data(dict_list):
      names = [d["name"] for d in dict_list]
      ages = [d["age"] for d in dict_list]
      hobbies = [d["hobby"] for d in dict_list]
      return (names, ages, hobbies)