code: def Squeeze(a, squeeze_dims):
      
      if not squeeze_dims:
          squeeze_dims = list(range(len(a.shape)))
      slices = [(0 if (dim == 1 and i in squeeze_dims) else slice(None)) \
                for i, dim in enumerate(a.shape)]
      return np.copy(a)[slices],
docs: Squeeze op, i.e. removes singular axes.