code: def main():
      parser = argparse.ArgumentParser(
          description="Jupyter Notebooks to markdown"
      )
  
      parser.add_argument(
          "notebook", nargs=1, help="The notebook to be converted."
      )
      parser.add_argument("-o", "--output", help="output markdown file")
      args = parser.parse_args()
  
      old_ipynb = args.notebook[0]
      new_ipynb = "tmp.ipynb"
      md_file = args.output
      print(md_file)
      if not md_file:
          md_file = os.path.splitext(old_ipynb)[0] + ".md"
  
      clear_notebook(old_ipynb, new_ipynb)
      os.system(
          "jupyter nbconvert "
          + new_ipynb
          + " --to markdown --output "
          + md_file
      )
      with open(md_file, "a") as f:
          f.write("<!-- INSERT SOURCE DOWNLOAD BUTTONS -->")
      os.system("rm " + new_ipynb)
  
file_path: mxnet/tools/ipynb2md.py
imports: from __future__ import print_function
  import sys
  import io
  import os
  import argparse
  import nbformat
label_desc: Use image node_id 3 for calling a global function with example usage: main() without return types