input: Write a python function to generate a 10x10 matrix with random integers between 1 and 10.
  assert len(generate_matrix()) == 10
  assert all(len(row) == 10 for row in generate_matrix())
  assert all(1 <= num <= 10 for row in generate_matrix() for num in row)
output: import random
  
  def generate_matrix():
      return [[random.randint(1, 10) for _ in range(10)] for _ in range(10)]