code: def test_experiment_proxy_ray_publish() -> None:
      exp_path = conf.EXAMPLES_PATH / "features" / "ports"
      proc = subprocess.Popen(
          [
              "det",
              "-m",
              conf.make_master_url(),
              "experiment",
              "create",
              str(exp_path / "ray_launcher.yaml"),
              str(exp_path),
              "--config",
              "max_restarts=0",
              "--config",
              "resources.slots=1",
              "-f",
              "-p",
              "8265",
          ],
          stdout=subprocess.PIPE,
          text=True,
      )
  
      try:
          try:
              exp_id = _parse_exp_id(proc)
          except Exception:
              _kill_all_ray_experiments()
              raise
  
          try:
              exp.wait_for_experiment_state(
                  exp_id, bindings.experimentv1State.RUNNING
              )
              _probe_tunnel(proc)
              _ray_job_submit(exp_path)
          finally:
              sess = api_utils.determined_test_session()
              bindings.post_KillExperiment(sess, id=exp_id)
      finally:
          proc.terminate()
          proc.wait(10)
  
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 7 for calling a global function with example usage: test_experiment_proxy_ray_publish() without return types