code: def apply(self, parent_environ=None):
          
          interpreter = Python(target_environ=os.environ)
          executor = self._create_executor(interpreter, parent_environ)
          self._execute(executor)
          interpreter.apply_environ()
docs: Apply the context to the current python session.
  
          Note that this updates os.environ and possibly sys.path, if
          `parent_environ` is not provided.
  
          Args:
              parent_environ: Environment to interpret the context within,
                  defaults to os.environ if None.