code: def extract_section(content, section_name):
      start_comment = f"<!-- START {section_name}, please keep comment here to allow auto update of PyPI readme.md -->"
      end_comment = f"<!-- END {section_name}, please keep comment here to allow auto update of PyPI readme.md -->"
      section_match = re.search(
          rf"{re.escape(start_comment)}(.*?)\n{re.escape(end_comment)}",
          content,
          re.DOTALL,
      )
      if section_match:
          return section_match.group(1)
      else:
          raise Exception(
              f"Cannot find section {section_name} in README.md"
          )
  
imports: from __future__ import annotations
  import re
  from pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: extract_section(content, section_name) and returns: section_match