code: def parameter_dict(module: tf.Module) -> Dict[Path, LeafVariable]:
      """
      Returns a dictionary of parameters (variables) for the `tf.Module` component.
      Dictionary keys are relative paths to the attributes to which parameters (variables) assigned to.
  
          class SubModule(tf.Module):
              def __init__(self):
                  self.parameter = gpflow.Parameter(1.0)
                  self.variable = tf.Variable(1.0)
  
          class Module(tf.Module):
              def __init__(self):
                  self.submodule = SubModule()
  
          m = Module()
          params = parameter_dict(m)
          # {
          #   ".submodule.parameter": <parameter object>,
          #   ".submodule.variable": <variable object>
          # }
      """
      param_dict = leaf_components(module)
      return {
          f".{key.split('.', 1)[-1]}": value
          for key, value in param_dict.items()
      }
  
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 3 for calling a global function with example usage: parameter_dict(module) and returns: unknown