code: def new_notebook(cells=None):
      """Create a notebook by name, id and a list of worksheets."""
      nb = NotebookNode()
      if cells is not None:
          nb.cells = cells
      else:
          nb.cells = []
      return nb
  
file_path: nbformat/nbformat/v1/nbbase.py
imports: from __future__ import annotations
  from nbformat._struct import Struct
label_desc: Use image node_id 4 for calling a global function with example usage: new_notebook(cells) and returns: nb