code: def clear_notebook(old_ipynb, new_ipynb):
      with open(old_ipynb, "r") as f:
          nb = nbformat.read(f, nbformat.NO_CONVERT)
  
      remove_outputs(nb)
  
      with open(new_ipynb, "w", encoding="utf8") as f:
          nbformat.write(nb, f, nbformat.NO_CONVERT)
  
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 2 for calling a global function with example usage: clear_notebook(old_ipynb, new_ipynb) without return types