code: def issues_closed_since(
      period=timedelta(days=365),
      project="matplotlib/matplotlib",
      pulls=False,
  ):
      """
      Get all issues closed since a particular point in time.
  
      *period* can either be a datetime object, or a timedelta object. In the
      latter case, it is used as a time before the present.
      """
  
      which = "pulls" if pulls else "issues"
  
      if isinstance(period, timedelta):
          since = round_hour(datetime.utcnow() - period)
      else:
          since = period
      url = (
          f"https://api.github.com/repos/{project}/{which}"
          f"?state=closed"
          f"&sort=updated"
          f"&since={since.strftime(ISO8601)}"
          f"&per_page={PER_PAGE}"
      )
      allclosed = get_paged_request(url, headers=make_auth_header())
  
      filtered = (
          i
          for i in allclosed
          if _parse_datetime(i["closed_at"]) > since
      )
      if pulls:
          filtered = (
              i
              for i in filtered
              if _parse_datetime(i["merged_at"]) > since
          )
          # filter out PRs not against main (backports)
          filtered = (i for i in filtered if i["base"]["ref"] == "main")
      else:
          filtered = (i for i in filtered if not is_pull_request(i))
  
      return list(filtered)
  
file_path: matplotlib/tools/github_stats.py
imports: import sys
  from argparse import ArgumentParser
  from datetime import datetime, timedelta
  from subprocess import check_output
  from gh_api import get_paged_request, make_auth_header, get_pull_request, is_pull_request, get_milestone_id, get_issues_list, get_authors
label_desc: Use image node_id 5 for calling a global function with example usage: issues_closed_since(period, project, pulls) and returns: list