code: def test_notebook_capture() -> None:
      start_time = datetime.now(timezone.utc).strftime(
          "%Y-%m-%dT%H:%M:%SZ"
      )
  
      task_id = None
      with cmd.interactive_command("notebook", "start") as notebook:
          task_id = notebook.task_id
  
          for line in notebook.stdout:
              if (
                  re.search("Jupyter Notebook .*is running at", line)
                  is not None
              ):
                  return
      assert task_id is not None
  
      end_time = datetime.now(timezone.utc).strftime(
          "%Y-%m-%dT%H:%M:%SZ"
      )
      r = api.get(
          conf.make_master_url(),
          f"{API_URL}timestamp_after={start_time}&timestamp_before={end_time}",
      )
      assert r.status_code == requests.codes.ok, r.text
  
      assert re.search(f"{task_id},NOTEBOOK", r.text) is not None
  
file_path: determined/e2e_tests/tests/experiment/test_allocation_csv.py
imports: import csv
  import re
  from datetime import datetime, timedelta, timezone
  from io import StringIO
  import pytest
  import requests
  from determined.common import api
  from determined.common.api.bindings import experimentv1State
  from tests import cluster
  from tests import command
  from tests import config
  from tests import experiment
label_desc: Use image node_id 2 for calling a global function with example usage: test_notebook_capture() without return types