code: def test_delete_tensorboard_for_experiment() -> None:
      """
      Start a random experiment, start a TensorBoard instance pointed to
      the experiment, delete tensorboard and verify deletion.
      """
      config_obj = conf.load_config(
          conf.tutorials_path("mnist_pytorch/const.yaml")
      )
      experiment_id = exp.run_basic_test_with_temp_config(
          config_obj, conf.tutorials_path("mnist_pytorch"), 1
      )
  
      command = ["det", "e", "delete-tb-files", str(experiment_id)]
      subprocess.run(
          command,
          universal_newlines=True,
          stdout=subprocess.PIPE,
          check=True,
      )
  
      # Check if Tensorboard files are deleted
      tb_path = sorted(
          pathlib.Path("/tmp/determined-cp/").glob("*/tensorboard")
      )[0]
      tb_path = tb_path / "experiment" / str(experiment_id)
      assert not pathlib.Path(tb_path).exists()
  
file_path: determined/e2e_tests/tests/command/test_tensorboard.py
imports: import pathlib
  import subprocess
  from typing import Dict, Optional
  import pytest
  from determined.common import api, util
  from tests import command
  from tests import config
  from tests import experiment
  from tests.api_utils import determined_test_session
  from tests.filetree import FileTree
label_desc: Use image node_id 8 for calling a global function with example usage: test_delete_tensorboard_for_experiment() without return types