code: def get_type(object_) -> str:
      if inspect.isclass(object_):
          return "class"
      elif ismethod(object_):
          return "method"
      elif inspect.isfunction(object_):
          return "function"
      else:
          raise TypeError(
              f"{object_} is detected as neither a class, a method nor"
              f"a function."
          )
  
file_path: autokeras/docs/keras_autodoc/utils.py
imports: import importlib
  import inspect
  import os
  import re
label_desc: Use image node_id 9 for calling a global function with example usage: get_type(object_) and returns: str, str, str