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 __init__(self, axis=None):
      if axis is None:
          self.axis = None
      elif isinstance(axis, six.integer_types):
          self.axis = (axis,)
      elif isinstance(axis, tuple) and all(
          isinstance(x, six.integer_types) for x in axis
      ):
          self.axis = axis
      else:
          raise TypeError("axis must be None, int or tuple of ints")
  
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 1 to create a new Squeeze object from inherited base classes: function_node with example: obj = Squeeze(axis)