code: def __call__(
      self, name, rawtext, text, lineno, inliner, options={}, content=[]
  ):
      doctype = name.split("_")[1]
      parts = text.split("::")
  
      if text.startswith("~"):
          title = parts[-1]
          parts[0] = parts[0][1:]
      else:
          content = text
      link = self.base_link()
  
      if doctype == "struct":
          l, title = self.make_struct_link(parts, title)
      if doctype == "func":
          l, title = self.make_func_link(parts, title)
      if doctype == "meth":
          l, title = self.make_meth_link(parts, title)
      if doctype == "trait":
          l, title = self.make_trait_link(parts, title)
      link += l
  
      node = nodes.reference(internal=False, refuri=link, text=title)
      wrapper = nodes.literal(classes=["xref"])
      wrapper += node
  
      return [wrapper], []
  
file_path: hf-tokenizers/docs/source/_ext/rust_doc.py
imports: from docutils import nodes
  import sphinx
  from sphinx.locale import _
  from conf import rust_version
label_desc: Use image node_id 1 for calling the RustRef obj's underlying member method code with example usage: obj.__call__(name, rawtext, text, lineno, inliner, options, content) and returns: list,  list