input: Write a function to generate a 3x3 NumPy array of random integers ranging from 1 to 5 using the NumPy library. The function should return the generated array.
  import numpy as np
  
  def generate_random_array():
      return np.random.randint(1, 6, size=(3, 3))
  
  assert generate_random_array().shape == (3, 3)
  assert np.all(generate_random_array() >= 1) and np.all(generate_random_array() <= 5)
output: def generate_random_array():
      return np.random.randint(1, 6, size=(3, 3))