code: def generate_long_description() -> str:
      """Extra chunks from README for PyPI description.
  
      Target chunks must be contained within `<!-- pypi-doc -->` pair comments,
      so there must be an even number of comments in README.
  
      Raises:
          Exception: If odd number of `<!-- pypi-doc -->` comments
              in README.
  
      Returns:
          Extracted description from README.
      """
      # Read the contents of README file
      this_directory = Path(__file__).parent
      with open(
          this_directory / "mkdocs" / "index.md", encoding="utf-8"
      ) as f:
          readme = f.read()
  
      # Find pypi-doc comments in README
      boundary = r"<!-- pypi-doc -->"
      indices = [m.start() for m in re.finditer(boundary, readme)]
      if len(indices) % 2 != 0:
          raise Exception(
              f"Odd number of `{boundary}` comments in README"
          )
  
      # Loop through pairs of comments and save text between pairs
      long_description = ""
      for i in range(0, len(indices), 2):
          start_index = indices[i] + len(boundary)
          end_index = indices[i + 1]
          long_description += readme[start_index:end_index]
      return long_description
  
file_path: pyjanitor/setup.py
imports: import codecs
  import os
  import re
  from pathlib import Path
  from pprint import pprint
  from setuptools import find_packages, setup
label_desc: Use image node_id 3 for calling a global function with example usage: generate_long_description() and returns: long_description