code: def expand_dims(a, axis):
      """Expands given arrays.
  
      Args:
          a (cupy.ndarray): Array to be expanded.
          axis (int): Position where new axis is to be inserted.
  
      Returns:
          cupy.ndarray: The number of dimensions is one greater than that of
          the input array.
  
      .. seealso:: :func:`numpy.expand_dims`
  
      """
      if type(axis) not in (tuple, list):
          axis = (axis,)
      return _manipulation._expand_dims(a, axis)
  
file_path: cupy/cupy/_manipulation/dims.py
imports: import cupy
  from cupy import _core
  import cupy._core._routines_manipulation
label_desc: Use image node_id 7 for calling a global function with example usage: expand_dims(a, axis) and returns: _manipulation