code: def save_notebook(work_notebook, write_file):
      """Saves the Jupyter work_notebook to write_file"""
      with open(write_file, "w") as out_nb:
          json.dump(work_notebook, out_nb, indent=2)
  
file_path: tensorly/doc/sphinx_ext/sphinx_gallery/notebook.py
imports: from __future__ import division, absolute_import, print_function
  from functools import partial
  import argparse
  import json
  import re
  import sys
  from .py_source_parser import split_code_and_text_blocks
label_desc: Use image node_id 8 for calling a global function with example usage: save_notebook(work_notebook, write_file) without return types