code: def get_call_stack() -> Sequence[ModuleDetails]:
      frame = base.current_frame()
      return tuple(
          map(
              lambda s: ModuleDetails.of(s.module, s.method_name),
              list(frame.module_stack),
          )
      )
  
imports: from collections.abc import Mapping, Sequence
  import dataclasses
  import functools
  import pprint
  from typing import Any, Callable, Optional, TypeVar, Union
  from haiku._src import base
  from haiku._src import data_structures
  from haiku._src import module
  from haiku._src import transform
  from haiku._src import utils
  import jax
  import jax.numpy
  import numpy
  import tabulate
label_desc: Use image node_id 1 for calling a global function with example usage: get_call_stack() and returns: tuple