code: def get_arg_names(
      func: "tf_ext.DecoratedFunction",
  ) -> t.Optional[t.List[str]]:
      if hasattr(func, "function_spec"):  # for RestoredFunction
          func_spec: "tf_ext.FunctionSpec" = getattr(
              func, "function_spec"
          )
          return getattr(func_spec, "arg_names")
      if hasattr(
          func, "structured_input_signature"
      ):  # for ConcreteFunction
          return getattr(func, "_arg_keywords")
      return list()
  
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 11 for calling a global function with example usage: get_arg_names(func) and returns: list, getattr, getattr