code: def test_basic_notebook_start_and_kill() -> None:
      lines = []  # type: List[str]
      with cmd.interactive_command("notebook", "start") as notebook:
          for line in notebook.stdout:
              if (
                  re.search("Jupyter Notebook .*is running at", line)
                  is not None
              ):
                  return
              lines.append(line)
  
      raise ValueError(lines)
  
file_path: determined/e2e_tests/tests/command/test_notebook.py
imports: import re
  from typing import List
  import pytest
  from determined.common import api
  from determined.common.api import NTSC_Kind, bindings, get_ntsc_details, wait_for_ntsc_state
  from tests import command
  from tests import config
  from tests.api_utils import determined_test_session, kill_ntsc, launch_ntsc
label_desc: Use image node_id 1 for calling a global function with example usage: test_basic_notebook_start_and_kill() without return types