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 person with the keys 'name', 'email', and 'age'.
  
  def generate_sample_data(num_samples):
      from faker import Faker
      fake = Faker()
      sample_data = []
      for _ in range(num_samples):
          sample_data.append({'name': fake.name(), 'email': fake.email(), 'age': fake.random_int(min=18, max=60)})
      return sample_data
  
  assert generate_sample_data(1) == [{'name': 'John Doe', 'email': 'john.doe@example.com', 'age': 30}]
  assert generate_sample_data(0) == []
  assert generate_sample_data(3)[0]['name'] != generate_sample_data(3)[1]['name']
output: def generate_sample_data(num_samples):
      from faker import Faker
      fake = Faker()
      sample_data = []
      for _ in range(num_samples):
          sample_data.append({'name': fake.name(), 'email': fake.email(), 'age': fake.random_int(min=18, max=60)})
      return sample_data