code: def get_original_fn(
      f: Union[Transformed, TransformedWithState, Callable[..., Any]]
  ):
      if isinstance(f, (Transformed, TransformedWithState)):
          f = f.init
      return getattr(f, "_original_fn")
  
imports: from collections.abc import Mapping
  import inspect
  from typing import Any, Callable, NamedTuple, Optional, TypeVar, Union
  from haiku._src import analytics
  from haiku._src import base
  from haiku._src import data_structures
  from haiku._src import typing
  import jax
label_desc: Use image node_id 11 for calling a global function with example usage: get_original_fn(f) and returns: getattr