code: def leaf_components(input: tf.Module) -> Mapping[Path, LeafVariable]:
      return _get_leaf_components(input)
  
imports: import copy
  import re
  from functools import lru_cache
  from typing import Any, Callable, Dict, Mapping, Optional, Pattern, Tuple, Type, TypeVar, Union
  import numpy
  import tensorflow
  import tensorflow_probability
  from packaging.version import Version
  from tabulate import tabulate
  from tensorflow.python.util.object_identity import Reference
  from ..base import AnyNDArray, Parameter
  from ..config import default_summary_fmt
label_desc: Use image node_id 6 for calling a global function with example usage: leaf_components(input) and returns: _get_leaf_components