code: def _remove_leaf_wrapper(x: _LeafWrapper) -> Any:
      if not isinstance(x, _LeafWrapper):
          raise TypeError(
              f"Operation undefined, {x} is not a leaf of the pytree."
          )
      return x.value
  
imports: from collections.abc import Callable, Sequence
  from typing import Any, Optional, TYPE_CHECKING, Union
  import jax.numpy
  import jax.tree_util
  import numpy
  from jaxtyping import Array, ArrayLike, Bool, Float, PyTree, PyTreeDef
  from ._custom_types import sentinel
  from ._doc_utils import doc_repr
  from ._filters import is_array
label_desc: Use image node_id 1 for calling a global function with example usage: _remove_leaf_wrapper(x) and returns: x