input: Write a function to generate sample data for a web application using Python's faker library. The output should contain three columns of data: name, email, and age. The function should return a list of dictionaries, where each dictionary represents a single record with the keys 'name', 'email', and 'age'.
  from faker import Faker
  fake = Faker()
  
  def generate_sample_data(num_records):
      data = []
      for _ in range(num_records):
          record = {
              'name': fake.name(),
              'email': fake.email(),
              'age': fake.random_int(min=18, max=60)
          }
          data.append(record)
      return data
  
  assert generate_sample_data(2) == [
      {'name': 'John Doe', 'email': 'john@example.com', 'age': 30},
      {'name': 'Jane Smith', 'email': 'jane@example.com', 'age': 25}
  ]
  assert generate_sample_data(0) == []
  assert generate_sample_data(1) == [
      {'name': 'Alice Johnson', 'email': 'alice@example.com', 'age': 45}
  ]
output: def generate_sample_data(num_records):
      data = []
      for _ in range(num_records):
          record = {
              'name': fake.name(),
              'email': fake.email(),
              'age': fake.random_int(min=18, max=60)
          }
          data.append(record)
      return data