code: def test_tensorboard_experiment_capture() -> None:
      start_time = datetime.now(timezone.utc).strftime(
          "%Y-%m-%dT%H:%M:%SZ"
      )
  
      experiment_id = exp.create_experiment(
          conf.fixtures_path("no_op/single.yaml"),
          conf.fixtures_path("no_op"),
      )
  
      exp.wait_for_experiment_state(
          experiment_id, experimentv1State.COMPLETED
      )
  
      task_id = None
      with cmd.interactive_command(
          "tensorboard", "start", "--detach", str(experiment_id)
      ) as tb:
          task_id = tb.task_id
          for line in tb.stdout:
              if "TensorBoard is running at: http" in line:
                  break
              if "TensorBoard is awaiting metrics" in line:
                  raise AssertionError(
                      "Tensorboard did not find metrics"
                  )
      assert task_id is not None
      clu.utils.wait_for_task_state(
          "tensorboard", task_id, "TERMINATED"
      )
  
      # Ensure that end_time captures tensorboard
      end_time = (
          datetime.now(timezone.utc) + timedelta(minutes=1)
      ).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
  
      # Confirm Experiment is captured and valid
      reader = csv.DictReader(StringIO(r.text))
      matches = [
          row
          for row in reader
          if int(row["experiment_id"]) == experiment_id
      ]
      assert len(matches) >= 1
  
      # Confirm Tensorboard task is captured
      assert re.search(f"{task_id}.*,TENSORBOARD", 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 3 for calling a global function with example usage: test_tensorboard_experiment_capture() without return types