code: def setup(app):
      app.add_role("rust_struct", RustRef())
      app.add_role("rust_func", RustRef())
      app.add_role("rust_meth", RustRef())
      app.add_role("rust_trait", RustRef())
  
      return {
          "version": "0.1",
          "parallel_read_safe": True,
          "parallel_write_safe": True,
      }
  
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 a global function with example usage: setup(app) and returns: dict