code: def run_all_notebooks(args):
      """Run all notebooks in the example directory."""
      for notebook in Path(__file__).parent.parent.glob(
          "examples/*.ipynb"
      ):
          notebook_path = str(notebook.resolve())
  
          if len(args.notebook_name) > 0:
              if not any(
                  [x in notebook_path for x in args.notebook_name]
              ):
                  logging.info(f"Skipping: {notebook_path}")
                  continue
  
          nb = pm.execute_notebook(
              notebook_path,
              notebook_path,
              request_save_on_cell_execute=True,
              kernel_name="python3",
          )
  
          try:
              nb["metadata"]["kernelspec"]["display_name"] = "Python 3"
              nb["metadata"]["kernelspec"]["name"] = "python3"
          except KeyError:
              pass
          with open(notebook, "w") as fp:
              json.dump(nb, fp)
  
imports: from pathlib import Path
  import logging
  import argparse
  import json
  import papermill
label_desc: Use image node_id 1 for calling a global function with example usage: run_all_notebooks(args) without return types