code: def print_summary(
      module: tf.Module, fmt: Optional[str] = None
  ) -> None:
      """
      Prints a summary of the parameters and variables contained in a tf.Module.
      """
      fmt = fmt if fmt is not None else default_summary_fmt()
      if fmt == "notebook":
          from IPython.core.display import HTML, display
  
          tab = tabulate_module_summary(module, "html")
          display(HTML(tab))
      else:
          print(tabulate_module_summary(module, fmt))
  
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 4 for calling a global function with example usage: print_summary(module, fmt) without return types