input: Write a python function to generate a list of even numbers from 2 to 10.
  assert generate_even_numbers() == [2, 4, 6, 8, 10]
  assert generate_even_numbers() != [1, 3, 5, 7, 9]
  assert generate_even_numbers() == [2, 4, 6, 8, 10]
output: def generate_even_numbers():
      return [x for x in range(2, 11) if x % 2 == 0]