input: Write a function to generate a list of 10 random numbers within the range of 1 to 100. If the list is successfully generated, return the list. If the list generation fails, return an empty list.
  
  assert generate_random_list()==[some_random_numbers]
  assert generate_random_list()==[some_random_numbers]
  assert generate_random_list()==[some_random_numbers]
  assert generate_random_list()==[]
output: import random
  
  def generate_random_list():
      try:
          return [random.randint(1, 100) for _ in range(10)]
      except:
          return []