code: def read_content(filename):
      resource_filename = pkg_resources.resource_filename(
          "cellprofiler", os.path.join("data", "help", filename)
      )
  
      with open(resource_filename, "r", encoding="utf-8") as f:
          content = f.read()
  
      return re.sub(
          r"image:: (.*\.png)",
          lambda md: "image:: {}".format(
              image_resource(os.path.basename(md.group(0)))
          ),
          content,
      )
  
file_path: CellProfiler/src/frontend/cellprofiler/gui/help/content.py
imports: import os
  import os.path
  import re
  import base64
  import pkg_resources
  import cellprofiler
label_desc: Use image node_id 1 for calling a global function with example usage: read_content(filename) and returns: re