code: def environment_variables(**kwargs: tp.Any) -> tp.Iterator[None]:
      backup = {x: os.environ[x] for x in kwargs if x in os.environ}
      os.environ.update({x: str(y) for x, y in kwargs.items()})
      try:
          yield
      finally:
          for x in kwargs:
              del os.environ[x]
          os.environ.update(backup)
  
imports: import contextlib
  import io
  import itertools
  import os
  import pickle
  import select
  import shutil
  import subprocess
  import sys
  import tarfile
  import typing
  from pathlib import Path
  import cloudpickle
label_desc: Use image node_id 1 for calling a global function with example usage: environment_variables() without return types