class_docstr: Sphinx directive to insert a reference with query parameters.
class_docstr_tok: ["Sphinx","directive","to","insert","a","reference","with","query","parameters","."]
code: def run(self):
      ref_type = self.options.get("ref-type", "any")
      content = self.content.data
      reftarget = directives.uri(self.arguments[0])
      return [
          URLQueryParamRefNode(
              {
                  "docname": self.env.docname,
                  "parameters": self.options.get("parameters", None),
                  "classes": self.options.get("classes", []),
                  "reftarget": reftarget,
                  "refdocname": self.env.docname,
                  "refdomain": "std"
                  if ref_type in {"ref", "doc"}
                  else "",
                  "reftype": ref_type,
                  "refexplicit": content[0] if content else reftarget,
                  "refwarn": True,
              }
          )
      ]
  
file_path: ray/doc/source/_ext/queryparamrefs.py
imports: from docutils import nodes
  from docutils.parsers.rst import directives
  from sphinx.util.docutils import SphinxDirective
label_desc: Use image node_id 1 for calling the URLQueryParamRefDirective obj's underlying member method code with example usage: obj.run() and returns: list