input: Write a python function to extract names from a list of dictionaries.
  assert extract_names([{'id': 1, 'name': 'Tom'}, {'id': 2, 'name': 'Bob'}]) == ['Tom', 'Bob']
  assert extract_names([{'id': 3, 'name': 'Alice'}, {'id': 4, 'name': 'Eve'}]) == ['Alice', 'Eve']
  assert extract_names([{'id': 5, 'name': 'John'}, {'id': 6, 'name': 'Doe'}]) == ['John', 'Doe']
output: def extract_names(dicts):
      return [d['name'] for d in dicts]