code: def write(config, **overrides):
      for name, value in overrides.items():
          assert hasattr(config, name)
          setattr(config, name, value)
  
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 1 for calling a global function with example usage: write(config) without return types