code: def format_release_notes(latest_version: str):
      upcoming = current_dir / "CHANGELOG.md"
      with open(upcoming, "r") as latest:
          lines = latest.readlines()
          assert "# Upcoming Release" in lines[0]
      with open(upcoming, "w") as latest:
          if latest_version.startswith("v"):
              lines[0] = (
                  latest_version.replace("v", "# Version ") + "\n"
              )
          else:
              lines[0] = "# Version " + latest_version + "\n"
          lines = (
              textwrap.dedent(TEMPLATE).splitlines(keepends=True)
              + lines
          )
          latest.writelines(lines)
  
label_desc: Use image node_id 1 for calling a global function with example usage: format_release_notes(latest_version) without return types