code: def fill_notebook(work_notebook, script_blocks):
      """Writes the Jupyter notebook cells
  
      Parameters
      ----------
      script_blocks : list of tuples
      """
  
      for blabel, bcontent, lineno in script_blocks:
          if blabel == "code":
              add_code_cell(work_notebook, bcontent)
          else:
              add_markdown_cell(work_notebook, bcontent + "\n")
  
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 7 for calling a global function with example usage: fill_notebook(work_notebook, script_blocks) without return types