code: def test_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
      )
  
      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
  
      # Check if an entry exists for experiment that just ran
      reader = csv.DictReader(StringIO(r.text))
      matches = [
          row
          for row in reader
          if int(row["experiment_id"]) == experiment_id
      ]
      assert (
          len(matches) >= 1
      ), f"could not find any rows for experiment {experiment_id}"
  
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 1 for calling a global function with example usage: test_experiment_capture() without return types