code: def pretty_format_restored_model(
      model: "tf_ext.AutoTrackable",
  ) -> str:
      part_functions = ""
  
      restored_functions = get_restorable_functions(model)
      for name, func in restored_functions.items():
          part_functions += pretty_format_function(func, "model", name)
          part_functions += "\n"
  
      if get_tf_version().startswith("1"):
          serving_default = get_serving_default_function(model)
          if serving_default:
              part_functions += pretty_format_function(
                  serving_default,
                  "model",
                  "signatures['serving_default']",
              )
              part_functions += "\n"
  
      return f"Found restored functions:\n{part_functions}"
  
imports: from __future__ import annotations
  import importlib.metadata
  import importlib.util
  import logging
  import typing
  from typing import TYPE_CHECKING
  from bentoml.exceptions import BentoMLException
  from ...types import LazyType
  from ...utils.lazy_loader import LazyLoader
label_desc: Use image node_id 17 for calling a global function with example usage: pretty_format_restored_model(model) and returns: str, part_functions