input: from typing import List
  
  def generate_random_array(size: List[int]) -> np.ndarray:
      """ Using the NumPy library, generate a 2D array of random integers ranging from 1 to 5.
      >>> generate_random_array([3, 3])
      # Output will be a 3x3 array with random integers between 1 and 5
      """
      
      import numpy as np 
      
      return np.random.randint(1, 6, size=size)
output:     import numpy as np 
      
      return np.random.randint(1, 6, size=size)