code: def summarize_prs(since_version):
      """Go through all closed PRs, summarize those merged after the previous release.
  
      Yields one-line summaries of each relevant PR as a string.
      """
      releases = requests.get(URL + "/releases").json()
      most_recent_release = releases[0]["tag_name"]
      assert most_recent_release == since_version, (
          "unexpected most_recent_release: %r" % most_recent_release
      )
  
      published_at = releases[0]["published_at"]
  
      pulls = requests.get(
          URL + "/pulls", params={"state": "closed"}
      ).json()
      for pr in pulls:
          merged_at = pr["merged_at"]
          if merged_at is None or merged_at < published_at:
              continue
  
          summary = "* {msg} (__[{author}]({author_url})__, [#{pr}]({purl}))".format(
              msg=pr["title"],
              author=pr["user"]["login"],
              author_url=pr["user"]["html_url"],
              pr=pr["number"],
              purl=pr["html_url"],
          )
          print(summary)
          yield summary
  
imports: import datetime
  import json
  import os.path
  import sys
  import requests
label_desc: Use image node_id 1 for calling a global function with example usage: summarize_prs(since_version) without return types