code: def get_release_notes(version):
      version = normalize_version(version)
      underline = "=" * len("Version {}".format(version))
      initial_message = RELEASE_NOTES_TEMPLATE.format(
          version_string=version, underline=underline
      )
      lines = open_editor(initial_message)
      non_commented_lines = [
          line for line in lines if not line.startswith("#")
      ]
      changelog = "".join(non_commented_lines)
      if version in changelog:
          if not non_commented_lines[-1].isspace():
              non_commented_lines.append("\n")
          return non_commented_lines
      else:
          return None
  
imports: import os
  import tempfile
  import itertools
  import shutil
  import re
  from invoke import task, run
  from subprocess import call
  import semver
label_desc: Use image node_id 7 for calling a global function with example usage: get_release_notes(version) and returns: non_commented_lines, None