code: def squeeze(a, axis=None):
      """Removes size-one axes from the shape of an array.
  
      Args:
          a (cupy.ndarray): Array to be reshaped.
          axis (int or tuple of ints): Axes to be removed. This function removes
              all size-one axes by default. If one of the specified axes is not
              of size one, an exception is raised.
  
      Returns:
          cupy.ndarray: An array without (specified) size-one axes.
  
      .. seealso:: :func:`numpy.squeeze`
  
      """
      # TODO(okuta): check type
      return a.squeeze(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 8 for calling a global function with example usage: squeeze(a, axis) and returns: a