code: def extract_notebook_paths():
      script_path = os.path.dirname(os.path.abspath(__file__))
      notebooks_path = os.path.abspath(
          os.path.join(
              script_path,
              "..",
              "..",
              "..",
              "..",
              "examples",
              "python",
              "notebooks",
          )
      )
  
      # NOTE: This test runs only when you have the source repo.
      paths = []
      if os.path.exists(notebooks_path):
          for entry in os.scandir(notebooks_path):
              if entry.is_file() and entry.path.endswith(".ipynb"):
                  paths.append(entry.path)
      return paths
  
file_path: interpret/python/interpret-core/tests/test_example_notebooks.py
imports: import os
  import nbformat
  from nbconvert.preprocessors import ExecutePreprocessor
  from nbformat.v4 import new_code_cell
  import pytest
  import re
label_desc: Use image node_id 2 for calling a global function with example usage: extract_notebook_paths() and returns: paths