def __enter__(self):
        self._inContextManager = True
        self.config = Config()
        self.config.setOptions(self.options)
        self._jobStore = self.loadOrCreateJobStore(self.config.jobStore,
                                                   config=None if self.config.restart else self.config)
        if self.config.restart:
            # Reload configuration from job store
            self.config = self._jobStore.config
            self.config.setOptions(self.options)
            self._jobStore.writeConfigToStore()

        return self
Derive configuration from the command line options, load the job store and, on restart,
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/common.py/Toil.__enter__