code: def ipynb_to_md(ipynb_path):
      orig_path = os.getcwd()
      os.chdir(os.path.dirname(ipynb_path))
      file_name = os.path.basename(ipynb_path)
      subprocess.call(
          ["python", "-m", "nbconvert", "--to", "markdown", file_name]
      )
  
      new_s = []
      md_name = file_name.replace(".ipynb", ".md")
      with open(md_name, "r") as f:
          for line in f:
              if line.startswith("#"):
                  new_s.append(line)
                  break
          for line in f:
              if line.startswith(("## API", "# API")):
                  new_s.append(line)
                  new_s.append("\n")
                  break
              new_s.append(line)
          for line in f:
              if line.lstrip().startswith("#"):
                  break
          for line in f:
              new_s.append(line[4:])
  
      with open(md_name, "w") as f:
          f.write("".join(new_s))
      os.chdir(orig_path)
  
file_path: mlxtend/docs/ipynb2markdown.py
imports: import glob
  import os
  import shutil
  import subprocess
  import markdown
  from markdown.extensions import Extension
  from markdown.treeprocessors import Treeprocessor
  from nbconvert.exporters import MarkdownExporter
label_desc: Use image node_id 1 for calling a global function with example usage: ipynb_to_md(ipynb_path) without return types