code: def issues_closed_since(
      period=timedelta(days=365), project="pysal/pysal", 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):
          period = datetime.now() - period
      url = (
          "https://api.github.com/repos/%s/%s?state=closed&sort=updated&since=%s&per_page=%i"
          % (project, which, period.strftime(ISO8601), PER_PAGE)
      )
      allclosed = get_url(url)
      # allclosed = get_issues(project=project, state='closed', pulls=pulls, since=period)
      filtered = [
          i
          for i in allclosed
          if _parse_datetime(i["closed_at"]) > period
      ]
  
      # exclude rejected PRs
      if pulls:
          filtered = [pr for pr in filtered if pr["merged_at"]]
  
      return filtered
  
imports: import os
  import json
  import urllib
  import re
  import yaml
  from urllib.request import urlopen
  from datetime import datetime, timedelta
  import requests
label_desc: Use image node_id 15 for calling a global function with example usage: issues_closed_since(period, project, pulls) and returns: filtered