input: Write a function to generate sample data for a web application using Python's faker library. The function should return a list of tuples, each containing three pieces of data: name, email, and age. The age should be a random integer between 18 and 60.
  
  def generate_sample_data(num_samples):
      from faker import Faker
      fake = Faker()
      data = []
      for _ in range(num_samples):
          data.append((fake.name(), fake.email(), fake.random_int(min=18, max=60)))
      return data
  
  assert generate_sample_data(3) == [('John Doe', 'johndoe@example.com', 25), ('Jane Smith', 'janesmith@example.com', 34), ('Mike Johnson', 'mikejohnson@example.com', 42)]
output: def generate_sample_data(num_samples):
      from faker import Faker
      fake = Faker()
      data = []
      for _ in range(num_samples):
          data.append((fake.name(), fake.email(), fake.random_int(min=18, max=60)))
      return data