code: def _kill_all_ray_experiments() -> None:
      proc = subprocess.run(
          [
              "det",
              "-m",
              conf.make_master_url(),
              "experiment",
              "list",
              "--csv",
          ],
          capture_output=True,
          text=True,
          check=True,
      )
      reader = csv.DictReader(StringIO(proc.stdout))
      sess = api_utils.determined_test_session()
      for row in reader:
          if row["name"] == "ray_launcher":
              if row["state"] not in ["CANCELED", "COMPLETED"]:
                  exp_id = int(row["ID"])
                  bindings.post_KillExperiment(sess, id=exp_id)
  
file_path: determined/e2e_tests/tests/cluster/test_proxy.py
imports: import csv
  import pathlib
  import re
  import subprocess
  import time
  from io import StringIO
  import pytest
  import requests
  from determined.common.api import bindings
  from tests import api_utils
  from tests import config
  from tests import experiment
  from tests import ray_utils
label_desc: Use image node_id 6 for calling a global function with example usage: _kill_all_ray_experiments() without return types