def enable(self):
        """This function is used to enable to BaseDataFetcher."""
        self.enabled = True
        yield
        self.enabled = False
This function is used to enable to BaseDataFetcher.
src/flash/core/data/callback.py