code: def test_notebook(self):
      worksheets = [new_worksheet(), new_worksheet()]
      metadata = new_metadata(name="foo")
      nb = new_notebook(metadata=metadata, worksheets=worksheets)
      self.assertEqual(nb.metadata.name, "foo")
      self.assertEqual(nb.worksheets, worksheets)
      self.assertEqual(nb.nbformat, nbformat)
  
imports: from __future__ import annotations
  from unittest import TestCase
  import pytest
  from nbformat.v3.nbbase import NotebookNode, nbformat, new_author, new_code_cell, new_heading_cell, new_metadata, new_notebook, new_output, new_text_cell, new_worksheet
label_desc: Use image node_id 2 for calling the TestNotebook obj's underlying member method code with example usage: obj.test_notebook() without return types