code: def sg_squeeze(tensor, opt):
      r
      opt += tf.sg_opt(axis=[-1])
      opt.axis = opt.axis if isinstance(opt.axis, (tuple, list)) else [opt.axis]
      return tf.squeeze(tensor, opt.axis, name=opt.name)
docs: r"""Removes axis of size 1 from the shape of a tensor.
      
      See `tf.squeeze()` in tensorflow.
  
      Args:
        tensor: A `Tensor` (automatically given by chain).
        opt:
          axis : A tuple/list of integers or an integer.
                 axis to remove. Default is -1.
          name: If provided, it replaces current tensor's name.
  
      Returns:
        A `Tensor`.