code: def setup(app):
      app.add_role("rc", rcparam_role)
      app.add_role("mpltype", mpltype_role)
      app.add_node(
          QueryReference,
          html=(
              visit_query_reference_node,
              depart_query_reference_node,
          ),
          latex=(
              visit_query_reference_node,
              depart_query_reference_node,
          ),
          text=(
              visit_query_reference_node,
              depart_query_reference_node,
          ),
      )
      return {"parallel_read_safe": True, "parallel_write_safe": True}
  
file_path: matplotlib/doc/sphinxext/custom_roles.py
imports: from urllib.parse import urlsplit, urlunsplit
  from docutils import nodes
  from matplotlib import rcParamsDefault
label_desc: Use image node_id 5 for calling a global function with example usage: setup(app) and returns: dict