code: def get_notebooks() -> Sequence[Path]:
      """
      Returns all notebooks in `_nbpath` that are not ignored.
      """
  
      def notebook_ignored(nb: Path) -> bool:
          return nb.name in IGNORED_NOTEBOOKS
  
      # recursively traverse the notebook directory in search for ipython notebooks
      all_py_notebooks = _NOTEBOOK_DIR.glob("**/*.pct.py")
      all_md_notebooks = _NOTEBOOK_DIR.glob("**/*.md")
      all_notebooks = itertools.chain(
          all_md_notebooks, all_py_notebooks
      )
      notebooks_to_test = [
          nb for nb in all_notebooks if not notebook_ignored(nb)
      ]
      return notebooks_to_test
  
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 2 for calling a global function with example usage: get_notebooks() and returns: notebooks_to_test, unknown