code: def split_pulls(all_issues, project="matplotlib/matplotlib"):
      """Split a list of closed issues into non-PR Issues and Pull Requests."""
      pulls = []
      issues = []
      for i in all_issues:
          if is_pull_request(i):
              pull = get_pull_request(project, i["number"], auth=True)
              pulls.append(pull)
          else:
              issues.append(i)
      return issues, pulls
  
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 4 for calling a global function with example usage: split_pulls(all_issues, project) and returns: issues,  pulls