code: def is_from_package(obj: Any) -> bool:
      """
      Return whether an object was loaded from a package.
  
      Note: packaged objects from externed modules will return ``False``.
      """
      if type(obj) == ModuleType:
          return is_mangled(obj.__name__)
      else:
          return is_mangled(type(obj).__module__)
  
label_desc: Use image node_id 1 for calling a global function with example usage: is_from_package(obj) and returns: is_mangled, is_mangled