code: def __getattr__(self, key: Key) -> Leaf | State:
      if "_mapping" not in vars(self) or key not in self._mapping:
          raise AttributeError(f"No attribute {key} in State")
  
      return self[key]
  
imports: from __future__ import annotations
  import typing
  import jax
  import jax.tree_util
  from flax import traverse_util
  from flax.experimental.nnx.nnx import filterlib, reprlib
  from flax.experimental.nnx.nnx.variables import Variable
label_desc: Use image node_id 5 for calling the State obj's underlying member method code with example usage: obj.__getattr__(key) and returns: self