code: def run_convert_to_html(output_dir):
      """Converts markdown files into their respective html files"""
      markdown_to_html = _get_markdown_renderer()
      for md_file_path in get_markdown_file_paths():
          with open(md_file_path, "r") as f:
              html = markdown_to_html(f.read())
              html = html.replace('.md">', '.html">')
  
          head = HEADER
          if "func_groups" in md_file_path:
              head = head.replace('"index.html"', '"../index.html"')
              head = head.replace(
                  '"doc_index.html"', '"../doc_index.html"'
              )
              head = head.replace('"stylesheets/', '"../stylesheets/')
  
          lines = html.split("\n")
          for i, line in enumerate(lines):
              if "FLOAT_RIGHT" in line:
                  line = line.replace("FLOAT_RIGHT", "")
                  lines[i] = line.replace(
                      "<a ", '<a class="float-right" '
                  )
          html = "".join([head, "\n".join(lines), FOOTER])
  
          save_file_path = os.path.abspath(
              md_file_path.replace(INPUT_DIR, output_dir).replace(
                  ".md", ".html"
              )
          )
          if not os.path.exists(os.path.dirname(save_file_path)):
              os.mkdir(os.path.dirname(save_file_path))
          with open(save_file_path, "w") as f:
              f.write(html)
              print("Wrote %s" % save_file_path)
  
file_path: ta-lib-python/docs/generate_html_pages.py
imports: from __future__ import print_function
  import os
  import sys
  import talib
  import mistune
  from pygments import highlight
  from pygments.lexers import get_lexer_by_name
  from pygments.formatters.html import HtmlFormatter
  from bs4 import BeautifulSoup
  from talib.abstract import Function
label_desc: Use image node_id 7 for calling a global function with example usage: run_convert_to_html(output_dir) without return types