def METHOD_NAME(repo, pr, run_id, workflow_name, job_name):
    """
    Mix PyGithub & Github V3 REST API method to extract the url path to a
    github actions workflow job corresponding to a given GITHUB_RUN_ID.
    Parameters
    ----------
    repo : PyGithub.Repository
      Github Repository API object.
    run_id : str
      Github actions RUN ID as defined by the github actions environment
      variable `GITHUB_RUN_ID`.
    workflow_name : str
      Name of the workflow to extract a job url for.
    job_name : str
      Name of the job within the workflow to extract a url for.
    Returns
    -------
    str
      URL to github actions workflow job or 'N/A' if a corresponding job name
      could not be found.
    """
    # Accessing get_workflow directly currently fails when passing a name
    # Instead do the roundabout way by getting list of all workflows
    linters = [wf for wf in repo.get_workflows()
               if wf.name == workflow_name][0]
    # Extract the gh action run
    run = [r for r in linters.get_runs(branch=pr.head.ref)
           if r.id == int(run_id)][0]
    # The exact job url can't be recovered via the Python API
    # Switch over to using the REST API instead
    with request.urlopen(run.jobs_url) as url:
        data = json.load(url)
    for job in data['jobs']:
        if job['name'] == job_name:
            return job['html_url']
    return 'N/A'