code: def get_readme(settings=None):
      confdir = os.path.dirname(__file__)
      topdir = os.path.dirname(confdir)
      filelist = ("DESCRIPTION.rst", "CITATION.rst", "INSTALL.rst")
      template = "See `{0} <{0}>`_.\n\n"
      template += ".. include:: {0}\n"
      text = template.format(filelist[0])
      for filename in filelist:
          source = os.path.join(topdir, filename)
          with open(source, encoding="utf-8") as f:
              includeline = template.format(filename)
              text = text.replace(includeline, f.read())
      return {
          "text": text,
          "content-type": "text/x-rst",
      }
  
imports: import re
  import os
  import sys
label_desc: Use image node_id 3 for calling a global function with example usage: get_readme(settings) and returns: dict