code: def shape(a):
      """Returns the shape of an array
  
      Args:
          a (array_like): Input array
  
      Returns:
          tuple of ints: The elements of the shape tuple give the lengths of the
          corresponding array dimensions.
  
      """
      if isinstance(a, cupy.ndarray):
          return a.shape
      else:
          return numpy.shape(a)
  
imports: import numpy
  import cupy
label_desc: Use image node_id 1 for calling a global function with example usage: shape(a) and returns: a, numpy