code: def _exec_notebook(notebook_path: Path) -> None:
      with notebook_path.open() as notebook_file:
          nb = jupytext.read(
              notebook_file, as_version=nbformat.current_nbformat
          )
          try:
              meta_data = {"path": str(notebook_path.parent)}
              _preproc().preprocess(nb, {"metadata": meta_data})
          except CellExecutionError as cell_error:
              traceback.print_exc(file=sys.stdout)
              msg = "Error executing the notebook {0}. See above for error.\nCell error: {1}"
              pytest.fail(
                  msg.format(str(notebook_path), str(cell_error))
              )
  
file_path: GPflow/tests/integration/test_notebooks.py
imports: import itertools
  import sys
  import traceback
  from pathlib import Path
  from typing import Sequence, Set
  import jupytext
  import nbformat
  import pytest
  from nbclient.exceptions import CellExecutionError
  from nbconvert.preprocessors.execute import ExecutePreprocessor
label_desc: Use image node_id 4 for calling a global function with example usage: _exec_notebook(notebook_path) without return types