code: def get_restorable_functions(
      m: tf_ext.Trackable,
  ) -> dict[str, tf_ext.RestoredFunction]:
      function_map = {k: getattr(m, k, None) for k in dir(m)}
      return {
          k: t.cast("tf_ext.RestoredFunction", v)
          for k, v in function_map.items()
          if k not in TF_KERAS_DEFAULT_FUNCTIONS
          and hasattr(v, "function_spec")
      }
  
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 12 for calling a global function with example usage: get_restorable_functions(m) and returns: unknown