class_docstr: Description of a JavaScript object.
class_docstr_tok: ["Description","of","a","JavaScript","object","."]
code: def get_index_text(
      self, objectname: str, name_obj: tuple[str, str]
  ) -> str:
      name, obj = name_obj
      if self.objtype == "function":
          if not obj:
              return _("%s() (built-in function)") % name
          return _("%s() (%s method)") % (name, obj)
      elif self.objtype == "class":
          return _("%s() (class)") % name
      elif self.objtype == "data":
          return _("%s (global variable or constant)") % name
      elif self.objtype == "attribute":
          return _("%s (%s attribute)") % (name, obj)
      return ""
  
imports: from __future__ import annotations
  import contextlib
  from typing import TYPE_CHECKING, Any, cast
  from docutils import nodes
  from docutils.parsers.rst import directives
  from sphinx import addnodes
  from sphinx.directives import ObjectDescription
  from sphinx.domains import Domain, ObjType
  from sphinx.domains.python import _pseudo_parse_arglist
  from sphinx.locale import _, __
  from sphinx.roles import XRefRole
  from sphinx.util import logging
  from sphinx.util.docfields import Field, GroupedField, TypedField
  from sphinx.util.docutils import SphinxDirective
  from sphinx.util.nodes import make_id, make_refnode, nested_parse_with_titles
label_desc: Use image node_id 5 for calling the JSObject obj's underlying member method code with example usage: obj.get_index_text(objectname, name_obj) and returns: str, unknown, unknown, unknown, unknown, unknown