code: def assign(**overrides):
      """Context manager used to override config settings."""
      config = get_config()
      previous = {name: getattr(config, name) for name in overrides}
      write(config, **overrides)
      try:
          yield
      finally:
          write(config, **previous)
  
file_path: dm-haiku/haiku/_src/config.py
imports: import contextlib
  import dataclasses
  import threading
  from typing import Optional
label_desc: Use image node_id 4 for calling a global function with example usage: assign() without return types