code: def test_delete_experiment_removes_tensorboard_files() -> None:
      """
      Start a random experiment, delete the experiment and verify that TensorBoard files are deleted.
      """
      config_obj = conf.load_config(
          conf.fixtures_path("no_op/single-medium-train-step.yaml")
      )
      experiment_id = exp.run_basic_test_with_temp_config(
          config_obj, conf.fixtures_path("no_op"), 1
      )
  
      # Check if Tensorboard files are created
      path = (
          config_obj["checkpoint_storage"]["host_path"]
          + "/"
          + config_obj["checkpoint_storage"]["storage_path"]
      )
      tb_path = sorted(pathlib.Path(path).glob("*/tensorboard"))[0]
      tb_path = tb_path / "experiment" / str(experiment_id)
      assert pathlib.Path(tb_path).exists()
  
      command = [
          "det",
          "-m",
          conf.make_master_url(),
          "e",
          "delete",
          str(experiment_id),
          "--yes",
      ]
      subprocess.run(
          command,
          universal_newlines=True,
          stdout=subprocess.PIPE,
          check=True,
      )
  
      ticks = 60
      for i in range(ticks):
          try:
              state = exp.experiment_state(experiment_id)
              if i % 5 == 0:
                  print(
                      f"experiment in state {state} waiting to be deleted"
                  )
              time.sleep(1)
          except api.errors.NotFoundException:
              # Check if Tensorboard files are deleted
              assert not pathlib.Path(tb_path).exists()
              return
  
      pytest.fail(
          f"experiment failed to be deleted after {ticks} seconds"
      )
  
file_path: determined/e2e_tests/tests/cluster/test_experiment_delete.py
imports: import pathlib
  import subprocess
  import time
  import pytest
  from determined.common import api
  from tests import config
  from tests import experiment
label_desc: Use image node_id 1 for calling a global function with example usage: test_delete_experiment_removes_tensorboard_files() without return types