def add_cleanup(self, func):
        self._cleanup.append(func)
Add a function to be called when the config object gets out of
dataset/ETHPy150Open pytest-dev/pytest/_pytest/config.py/Config.add_cleanup