code: def get_input_signatures(
      func: tf_ext.DecoratedFunction,
  ) -> list[tuple[tf_ext.InputSignature, ...]]:
      if hasattr(func, "function_spec"):  # RestoredFunction
          func_spec: "tf_ext.FunctionSpec" = getattr(
              func, "function_spec"
          )
          input_spec: "tf_ext.TensorSignature" = getattr(
              func_spec, "input_signature"
          )
          if input_spec is not None:
              return ((input_spec, {}),)
          else:
              concrete_func: t.List[
                  "tf_ext.ConcreteFunction"
              ] = getattr(func, "concrete_functions")
              return tuple(
                  s
                  for conc in concrete_func
                  for s in get_input_signatures(conc)
              )
      else:
          sis: "tf_ext.InputSignature" = getattr(
              func, "structured_input_signature"
          )
          if sis is not None:
              return (sis,)
          # NOTE: we can use internal `_arg_keywords` here.
          # Seems that this is a attributes of all ConcreteFunction and
          # does seem safe to access and use externally.
          if getattr(func, "_arg_keywords") is not None:
              return (
                  (
                      tuple(),
                      {
                          k: normalize_spec(v)
                          for k, v in zip(
                              getattr(func, "_arg_keywords"),
                              getattr(func, "inputs"),
                          )
                      },
                  ),
              )
      return tuple()
  
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 9 for calling a global function with example usage: get_input_signatures(func) and returns: tuple, input_spec,  dict, tuple, sis, tuple,  unknown