code: def get_issues(project="dipy/dipy", state="closed", pulls=False):
      """Get a list of the issues from the Github API."""
      which = "pulls" if pulls else "issues"
      url = (
          f"https://api.github.com/repos/{project}/{which}"
          f"?state={state}&per_page={PER_PAGE}"
      )
      return get_paged_request(url)
  
file_path: dipy/tools/github_stats.py
imports: import json
  import re
  import sys
  from datetime import datetime, timedelta
  from subprocess import check_output
  from urllib.request import urlopen
label_desc: Use image node_id 3 for calling a global function with example usage: get_issues(project, state, pulls) and returns: get_paged_request