input: 
  def generate_random_array() -> np.ndarray:
      """Generate a 3x3 array of random integers ranging from 1 to 5 using NumPy.
      >>> generate_random_array()
      array([[4, 2, 5],
             [1, 3, 4],
             [2, 5, 1]])
      >>> generate_random_array()
      array([[3, 1, 2],
             [5, 4, 3],
             [2, 1, 5]])
      """
  
output:     import numpy as np
      return np.random.randint(1, 6, (3, 3))