input: from typing import List
  
  def generate_random_array(size: List[int]) -> List[List[int]]:
      """ Generate a 2D array of random integers.
      The integers should range from 1 to 5 inclusive.
      >>> generate_random_array([3, 3])
      [[1, 2, 5], [3, 1, 4], [5, 2, 3]]
      """
output:     import random
      return [[random.randint(1, 5) for _ in range(size[1])] for _ in range(size[0])]