code: def override_env(mapping):
      original = os.environ
      try:
          os.environ = dict(os.environ, **mapping)
          yield os.environ
      finally:
          os.environ = original
  
file_path: arrow/dev/archery/archery/testing.py
imports: from contextlib import contextmanager
  import os
  from unittest import mock
  import re
label_desc: Use image node_id 3 for calling a global function with example usage: override_env(mapping) without return types