code: def test_start_tensorboard_for_multi_experiment(
      tmp_path: pathlib.Path, secrets: Dict[str, str]
  ) -> None:
      """
      Start 3 random experiments configured with the s3 and shared_fs backends,
      start a TensorBoard instance pointed to the experiments and some select
      trials, and kill the TensorBoard instance.
      """
      with FileTree(
          tmp_path,
          {
              "shared_fs_config.yaml": shared_fs_config(1),
              "s3_config.yaml": s3_config(1, secrets),
              "multi_trial_config.yaml": shared_fs_config(3),
          },
      ) as tree:
          shared_conf_path = tree.joinpath("shared_fs_config.yaml")
          shared_fs_exp_id = exp.run_basic_test(
              str(shared_conf_path),
              conf.fixtures_path("no_op"),
              num_trials,
          )
  
          s3_conf_path = tree.joinpath("s3_config.yaml")
          s3_exp_id = exp.run_basic_test(
              str(s3_conf_path), conf.fixtures_path("no_op"), num_trials
          )
  
          multi_trial_config = tree.joinpath("multi_trial_config.yaml")
          multi_trial_exp_id = exp.run_basic_test(
              str(multi_trial_config), conf.fixtures_path("no_op"), 3
          )
  
          trial_ids = [
              str(t.trial.id)
              for t in exp.experiment_trials(multi_trial_exp_id)
          ]
  
      command = [
          "tensorboard",
          "start",
          str(shared_fs_exp_id),
          str(s3_exp_id),
          str(multi_trial_exp_id),
          "-t",
          *trial_ids,
          "--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 5 for calling a global function with example usage: test_start_tensorboard_for_multi_experiment(tmp_path, secrets) without return types