class_docstr: Remove dimensions of size one from the shape of a ndarray.
class_docstr_tok: ["Remove","dimensions","of","size","one","from","the","shape","of","a","ndarray","."]
code: def backward(self, indexes, grad_outputs):
      if self.axis is None:
          axis = tuple(argone(self.inputs[0].shape))
      else:
          axis = self.axis
          ndim = len(self.inputs[0].shape)
          axis = [x + ndim if x < 0 else x for x in axis]
          axis.sort()
      (gx,) = grad_outputs
  
      shape = list(gx.shape)
      for x in axis:  # axis needs to be sorted
          shape.insert(x, 1)
      return (gx.reshape(shape),)
  
file_path: chainer/chainer/functions/array/squeeze.py
imports: import six
  from chainer import backend
  from chainer import function_node
  from chainer.utils import type_check
label_desc: Use image node_id 5 for calling the Squeeze obj's underlying member method code with example usage: obj.backward(indexes, grad_outputs) and returns: gx