code: def _add_to_env(envs: Dict[str, str]):
      """This function adds the given environment variables to the current environment."""
      original_envs = dict(os.environ)
      os.environ.update(envs)
  
      try:
          yield
      finally:
          os.environ.clear()
          os.environ.update(original_envs)
  
imports: import inspect
  import os
  import sys
  import traceback
  import types
  from contextlib import contextmanager
  from copy import copy
  from typing import TYPE_CHECKING, Any, Dict, List, Tuple, Type, Union
  from lightning.app.utilities.exceptions import MisconfigurationException
  from lightning.app.utilities.app_helpers import Logger, _mock_missing_imports
label_desc: Use image node_id 10 for calling a global function with example usage: _add_to_env(envs) without return types