src/transformers/integrations.py/NeptuneCallback/__del__
class NeptuneCallback:    def __del__(self):
        """
        Environment:
            NEPTUNE_STOP_TIMEOUT (:obj:`int`, `optional`):
                Number of seconsds to wait for all Neptune.ai tracking calls to finish, before stopping the tracked
                run. If not set it will wait for all tracking calls to finish.
        """
        try:
            stop_timeout = os.getenv("NEPTUNE_STOP_TIMEOUT")
            stop_timeout = int(stop_timeout) if stop_timeout else None
            self._neptune_run.stop(seconds=stop_timeout)
        except AttributeError:
            pass