code: def process_includes(markdown_text, root):
      updated_markdown = ""
      for line in markdown_text.split("\n"):
          new_line = ""
          # Replaces Markdown includes with content
          if line.startswith("<<"):
              include_match = re.search("^<<(.*?)>>", line)
              if include_match:
                  include_file = os.path.abspath(
                      root + "/" + include_match[1]
                  )
                  new_line = read_markdown(include_file)
          if new_line:
              updated_markdown += new_line + "\n"
          else:
              updated_markdown += line + "\n"
      return updated_markdown
  
file_path: generative-ai-docs/demos/palm/python/docs-agent/scripts/markdown_to_plain_text.py
imports: from markdown import markdown
  from bs4 import BeautifulSoup
  import os
  import re
  import json
  import frontmatter
  import read_config
  import uuid
label_desc: Use image node_id 5 for calling a global function with example usage: process_includes(markdown_text, root) and returns: updated_markdown