code: def add_code_cell(work_notebook, code):
      """Add a code cell to the notebook
  
      Parameters
      ----------
      code : str
          Cell content
      """
  
      code_cell = {
          "cell_type": "code",
          "execution_count": None,
          "metadata": {"collapsed": False},
          "outputs": [],
          "source": [code.strip()],
      }
      work_notebook["cells"].append(code_cell)
  
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 5 for calling a global function with example usage: add_code_cell(work_notebook, code) without return types