code: def _serialiseEnv(self):
          
          # Dump out the environment of this process in the environment pickle file.
          with self._jobStore.writeSharedFileStream("environment.pickle") as fileHandle:
              pickle.dump(dict(os.environ), fileHandle, pickle.HIGHEST_PROTOCOL)
          logger.debug("Written the environment for the jobs to the environment file")
docs: Puts the environment in a globally accessible pickle file.