def __eq__(self, other):
        return (type(self) == type(other) and self.ndim == other.ndim and
                self.axis == other.axis and self.fill == other.fill)
.. todo::
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/utils/insert_along_axis.py/InsertAlongAxis.__eq__