input: Write a python function to generate a list of 5 random integers using the given `random_int` function.
  assert len(generate_random_list()) == 5
  assert all(1 <= num <= 10 for num in generate_random_list())
  assert isinstance(generate_random_list(), list)
output: def generate_random_list():
      import random
      def random_int():
          return random.randint(1, 10)
      
      return [random_int() for _ in range(5)]