code: def rst(filename):
      """
      Load rst file and sanitize it for PyPI.
      Remove unsupported github tags:
       - code-block directive
       - all badges
      """
      content = io.open(filename).read()
      for regex, replacement in PYPI_RST_FILTERS:
          content = re.sub(regex, replacement, content)
      return content
  
imports: import io
  import os
  import re
  import sys
  from setuptools import setup, find_packages
label_desc: Use image node_id 1 for calling a global function with example usage: rst(filename) and returns: content