code: def jax_issue_role(
      name, rawtext, text, lineno, inliner, options=None, content=()
  ):
      """Generate links to jax issues or PRs in sphinx.
  
      Usage::
  
          :jax-issue:`1234`
  
      This will output a hyperlink of the form
      `#1234 <http://github.com/google/jax/issues/1234>`_. These links work even
      for PR numbers.
      """
      text = text.lstrip("#")
      if not text.isdigit():
          raise RuntimeError(
              f"Invalid content in {rawtext}: expected an issue or PR number."
          )
      options = {} if options is None else options
      url = f"https://github.com/google/jax/issues/{text}"
      node = nodes.reference(rawtext, "#" + text, refuri=url, **options)
      return [node], []
  
imports: from docutils import nodes, utils
  from sphinx.util.nodes import split_explicit_title
label_desc: Use image node_id 1 for calling a global function with example usage: jax_issue_role(name, rawtext, text, lineno, inliner, options, content) and returns: list,  list