code: def make_linkcode_resolve(package, url_fmt):
      """Returns a linkcode_resolve function for the given URL format
  
      revision is a git commit reference (hash or name)
  
      package is the name of the root module of the package
  
      url_fmt is along the lines of ('https://github.com/USER/PROJECT/'
                                     'blob/{revision}/{package}/'
                                     '{path}#L{lineno}')
      """
      revision = _get_git_revision()
      return partial(
          _linkcode_resolve,
          revision=revision,
          package=package,
          url_fmt=url_fmt,
      )
  
file_path: pmdarima/doc/sphinxext/github_link.py
imports: from operator import attrgetter
  import inspect
  import subprocess
  import os
  import sys
  from functools import partial
label_desc: Use image node_id 3 for calling a global function with example usage: make_linkcode_resolve(package, url_fmt) and returns: partial