def __repr__(self):
        args = []
        if self._record:
            args.append("record=True")
        if self._module is not sys.modules['warnings']:
            args.append("module=%r" % self._module)
        name = type(self).__name__
        return "%s(%s)" % (name, ", ".join(args))
dataset/ETHPy150Open trevorstephens/gplearn/gplearn/skutils/testing.py/_IgnoreWarnings.__repr__/original