code: def test_notebook(notebook):
      nb_name = os.path.split(notebook)[-1]
      if nb_name in SLOW_NOTEBOOKS:
          pytest.skip("Notebook is too slow to test")
      nb = nbformat.read(notebook, as_version=4)
      ep = ExecutePreprocessor(
          allow_errors=False, timeout=240, kernel_name=kernel_name
      )
      ep.preprocess(nb, {"metadata": {"path": NOTEBOOK_DIR}})
  
imports: import glob
  import os
  import sys
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_notebook(notebook) without return types