code: def test_start_tensorboard_for_s3_experiment(
      tmp_path: pathlib.Path,
      secrets: Dict[str, str],
      prefix: Optional[str],
  ) -> None:
      """
      Start a random experiment configured with the s3 backend, start a
      TensorBoard instance pointed to the experiment, and kill the TensorBoard
      instance.
      """
      with FileTree(
          tmp_path, {"config.yaml": s3_config(1, secrets, prefix)}
      ) as tree:
          config_path = tree.joinpath("config.yaml")
          experiment_id = exp.run_basic_test(
              str(config_path), conf.fixtures_path("no_op"), num_trials
          )
  
      command = [
          "tensorboard",
          "start",
          str(experiment_id),
          "--no-browser",
      ]
      with cmd.interactive_command(*command) as tensorboard:
          assert tensorboard.task_id is not None
          err = api.task_is_ready(
              determined_test_session(), tensorboard.task_id
          )
          assert err is None, err
  
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 4 for calling a global function with example usage: test_start_tensorboard_for_s3_experiment(tmp_path, secrets, prefix) without return types