code: def context(**kwargs) -> Iterator[None]:
      r"""
      Context manager to temporarily override one or more settings. This also
      works as a decorator.
  
      :param \*\*kwargs: alias=value pairs.
      """
      old = {alias: get(alias) for alias in kwargs}
      try:
          set(**kwargs)
          yield
      finally:
          set(**old)
  
file_path: pyro/pyro/settings.py
imports: import functools
  from contextlib import contextmanager
  from importlib import import_module
  from typing import Any, Callable, Dict, Iterator, Optional, Tuple
label_desc: Use image node_id 3 for calling a global function with example usage: context() without return types