code: def _namedtuple_state_dict(nt) -> Dict[str, Any]:
      return {
          key: to_state_dict(getattr(nt, key)) for key in nt._fields
      }
  
imports: import enum
  import threading
  from contextlib import contextmanager
  from typing import Any, Dict, List
  import jax
  import msgpack
  import numpy
label_desc: Use image node_id 11 for calling a global function with example usage: _namedtuple_state_dict(nt) and returns: unknown