code: def parse_changelog(tag_name: Text) -> Text:
      """Read the changelog and extract the most recently release entry."""
  
      p = Path(__file__).parent.parent / "CHANGELOG.mdx"
      changelog_lines = p.read_text(encoding="UTF-8").splitlines()
  
      title_regex = re.compile(
          r"##\s*\[(\d+\.\d+\.\d+)(\S*)\]\s*-\s*\d{4}-\d{2}-\d{2}"
      )
      consuming_version = False
      version_lines = []
      for line in changelog_lines:
          m = title_regex.match(line)
          if m:
              # found the version we want: start to consume lines
              # until we find the next version title
              if m.group(1) == tag_name:
                  consuming_version = True
              # found a new version title while parsing the version we want: break out
              elif consuming_version:
                  break
          if consuming_version:
              version_lines.append(line)
  
      if consuming_version:
          # drop the first lines (version headline, not needed for GH)
          return "\n".join(version_lines[2:]).strip()
      else:
          return None
  
file_path: rasa/scripts/publish_gh_release_notes.py
imports: import os
  import re
  import sys
  from pathlib import Path
  from typing import Text
  import github3
  from pep440_version_utils import Version
label_desc: Use image node_id 2 for calling a global function with example usage: parse_changelog(tag_name) and returns: str, None