code: def to_md(
      in_html_filepath: str,
      out_md_filepath: str,
      id: str,
      title: str,
      hide_title: str,
  ) -> None:
      """
      Convert Sphinx-generated html to md.
  
      Parameters
      ----------
      in_html_filepath : str
          input html file. Example: ./_build/html/preprocessing.html
      out_md_filepath : str
          output html file. Example: ../website/docs/preprocessing.md
      id : str
          Docusaurus document id
      title : str
          Docusaurus title id
      hide_title : str ("true" or "false")
          Whether to hide title in Docusaurus.
  
      """
  
      with open(in_html_filepath, "r") as f:
          soup = BeautifulSoup(f.read(), "html.parser")
          body = get_content(soup)
  
      with open(out_md_filepath, "w") as f:
          content = add_docusaurus_metadata(
              str(body), id, title, hide_title
          )
          f.write(content)
  
file_path: texthero/docs/to_docusaurus.py
imports: from bs4 import BeautifulSoup
  import glob
  from pathlib import Path
  from typing import List
  import re
  import json
label_desc: Use image node_id 4 for calling a global function with example usage: to_md(in_html_filepath, out_md_filepath, id, title, hide_title) without return types