input: Write a function to generate a 3X3 array of random integers ranging from 1 to 5 using the NumPy library. The function should return the generated array.
  import numpy as np
  np.random.seed(0)  # Added for reproducibility
  assert np.array_equal(np.array([[5, 2, 4], [2, 3, 4], [2, 3, 1]]), generate_random_array()) is not None
  assert np.shape(generate_random_array()) == (3, 3)
  assert (generate_random_array() >= 1).all() and (generate_random_array() <= 5).all()
output: def generate_random_array():
      return np.random.randint(1, 6, (3, 3))