code: def test_notebook_exits(user, assets_path):
      nb_path = pathlib.Path("notebooks") / "ipython_exit.py"
      script_fname = assets_path(nb_path)
      bindir = os.path.dirname(sys.executable)
      ipython = os.path.join(bindir, "ipython")
      cmd = [ipython, script_fname]
      subprocess.check_call(cmd)
  
imports: import json
  import os
  import pathlib
  import platform
  import subprocess
  import sys
  from unittest import mock
  import pytest
  import wandb
  import wandb.jupyter
  import wandb.sdk.lib.apikey
  import wandb.util
label_desc: Use image node_id 4 for calling a global function with example usage: test_notebook_exits(user, assets_path) without return types