code: def qualified_name(obj) -> str:
      
      if not isclass(obj):
          obj = type(obj)
  
      if obj.__module__ == 'builtins':
          return obj.__name__
      else:
          return '{}.{}'.format(obj.__module__, obj.__qualname__)
docs: Return the qualified name (e.g. package.module.Type) for the given object.
  
      If ``obj`` is not a class, the returned name will match its type instead.