input: Write a python function to generate a population of a specified size.
  assert len(generate_population(5)) == 5
  assert len(generate_population(10)) == 10
  assert all(isinstance(individual, list) for individual in generate_population(3))
output: import random
  
  def generate_population(size):
      population = []
      for _ in range(size):
          individual = [random.randint(0, 1) for _ in range(10)]  # Assuming individuals are lists of 10 binary genes
          population.append(individual)
      return population