code: def check_notebook_runs(notebook_loc):
      print(f"running: {notebook_loc}...")
      try:
          with open(notebook_loc, encoding="utf8") as f:
              nb = nbformat.read(f, as_version=4)
          ep = ExecutePreprocessor(timeout=600, kernel_name="python3")
          ep.preprocess(
              nb, {"metadata": {"path": Path(notebook_loc).parent}}
          )
      except Exception as e:
          print(
              f"failed to run notebook {notebook_loc}: rethrowing exception:"
          )
          raise e
      print(f"success!")
  
imports: import nbformat
  from nbconvert.preprocessors import ExecutePreprocessor
  from pathlib import Path
  from glob import glob
  from matplotlib import pyplot
label_desc: Use image node_id 1 for calling a global function with example usage: check_notebook_runs(notebook_loc) without return types