def __setstate__(self, d):
        self.__dict__ = d
        for attr in ('reader', 'writer'):
            try:
                method_self, method_name = d[attr]
            except __HOLE__:
                continue
            method = getattr(method_self, method_name)
            setattr(self, attr, method)
dataset/ETHPy150Open spotify/luigi/luigi/contrib/hdfs/format.py/CompatibleHdfsFormat.__setstate__