code: def __getitem__(self, name: str) -> tp.Any:
      current_flags = FLAGS_CONTEXT.flags_stack[-1]
      if name not in current_flags:
          raise ValueError(f"Unknown Flag: {name}")
      return current_flags[name]
  
file_path: flax/flax/experimental/nnx/nnx/flaglib.py
imports: from __future__ import annotations
  import dataclasses
  import threading
  import typing
  from contextlib import contextmanager
  from types import MappingProxyType
label_desc: Use image node_id 1 for calling the Flags obj's underlying member method code with example usage: obj.__getitem__(name) and returns: current_flags