input: from typing import List
  
  def generate_random_array(size: int) -> List[List[int]]:
      """Generates a 3x3 array of random integers ranging from 1 to 5 using the NumPy library.
      >>> generate_random_array(3)
      [[3, 2, 5],
       [1, 4, 2],
       [5, 3, 1]]
      """
output:     import numpy as np
      return np.random.randint(1, 6, (size, size)).tolist()