code: def qualname(o: object | Callable) -> str:
      """Convert an attribute/class/function to a string importable by ``import_string``."""
      if (
          callable(o)
          and hasattr(o, "__module__")
          and hasattr(o, "__name__")
      ):
          return f"{o.__module__}.{o.__name__}"
  
      cls = o
  
      if not isinstance(cls, type):  # instance or class
          cls = type(cls)
  
      name = cls.__qualname__
      module = cls.__module__
  
      if module and module != "__builtin__":
          return f"{module}.{name}"
  
      return name
  
imports: from __future__ import annotations
  import pkgutil
  from importlib import import_module
  from typing import TYPE_CHECKING, Callable
label_desc: Use image node_id 2 for calling a global function with example usage: qualname(o) and returns: name, o, str, o, module, str, name