code: def execute_notebook(fp: pathlib.Path) -> bool:
      try:
          _log.info("⏳ Executing notebook %s", fp)
          subprocess.check_call(
              [
                  "jupyter",
                  "nbconvert",
                  "--ExecutePreprocessor.kernel_name=python3",
                  "--ExecutePreprocessor.timeout=14000",
                  "--execute",
                  "--inplace",
                  str(fp),
              ]
          )
          _log.info("✔ Notebook executed successfully.")
          return True
      except subprocess.CalledProcessError as ex:
          _log.exception("❌ Failed to commit.", exc_info=ex)
          return False
  
file_path: pymc-examples/scripts/rerun.py
imports: import argparse
  import logging
  import pathlib
  import subprocess
label_desc: Use image node_id 3 for calling a global function with example usage: execute_notebook(fp) and returns: True, False