code: def _sphinx_type(obj: Enum) -> str:
      # try to return a link to a proper enum in bokeh.core.enums if possible
      if obj._enum in enums.__dict__.values():
          for name, value in enums.__dict__.items():
              if obj._enum is value:
                  fullname = f"{obj._enum.__module__}.{name}"
                  return f"{property_link(obj)}({model_link(fullname)})"
  
      # otherwise just a basic str name format
      return f"{property_link(obj)}({obj._enum})"
  
file_path: bokeh/src/bokeh/core/property/enum.py
imports: from __future__ import annotations
  import logging
  from typing import Any, overload
  from ...util.strings import nice_join
  from ..None import enums
  from ._sphinx import model_link, property_link, register_type_link
  from .bases import Init
  from .primitive import String
  from .singletons import Intrinsic
label_desc: Use image node_id 1 for calling a global function with example usage: _sphinx_type(obj) and returns: property_link, str, obj, str, property_link, str, model_link, str