code: def main():
      root = os.path.join(
          os.path.dirname(os.path.abspath(__file__)), ".."
      )
      previous_version, new_version = sys.argv[1:3]
  
      path = os.path.join(root, "CHANGELOG.md")
      with open(path) as fin:
          contents = fin.read().split("\n")
  
      header, contents = contents[:2], contents[2:]
      header.append(
          "## %s, %s\n"
          % (new_version, datetime.date.today().isoformat())
      )
      header.append(
          """
  ### :star2: New Features
  
  ### :red_circle: Bug fixes
  
  ### :books: Tutorial and doc improvements
  
  ### :+1: Improvements
  
  ### :warning: Deprecations (will be removed in the next major release)
  
  **COPY-PASTE DEPRECATIONS FROM THE PREVIOUS RELEASE HERE**
  
  Please organize the PR summaries from below into the above sections
  You may remove empty sections.  Be sure to include all deprecations.
  """
      )
  
      header += list(summarize_prs(previous_version))
  
      with open(path, "w") as fout:
          fout.write("\n".join(header + contents))
  
imports: import datetime
  import json
  import os.path
  import sys
  import requests
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types