code: def add_environment(self, environ):
          
          if isinstance(environ, dict):
              self._environment.update(environ)
docs: Updates the environment dictionary with the given one.
  
          Existing entries are overridden by the given ones
  
          :param environ: New environment variables