code: def test_tensorboard_inherit_image_pull_secrets() -> None:
      """
      Start a random experiment with image_pull_secrets, start a TensorBoard
      instance pointed to the experiment, verify the secrets are inherited.
      """
      exp_secrets = [{"name": "ips"}]
      config_obj = conf.load_config(
          conf.fixtures_path("no_op/single-one-short-step.yaml")
      )
      pod = config_obj.setdefault("environment", {}).setdefault(
          "pod_spec", {}
      )
      pod.setdefault("spec", {})["imagePullSecrets"] = [{"name": "ips"}]
      experiment_id = exp.run_basic_test_with_temp_config(
          config_obj, conf.fixtures_path("no_op"), 1
      )
  
      command = [
          "det",
          "-m",
          conf.make_master_url(),
          "tensorboard",
          "start",
          str(experiment_id),
          "--no-browser",
          "--detach",
      ]
      res = subprocess.run(
          command,
          universal_newlines=True,
          stdout=subprocess.PIPE,
          check=True,
      )
      t_id = res.stdout.strip("\n")
      command = [
          "det",
          "-m",
          conf.make_master_url(),
          "tensorboard",
          "config",
          t_id,
      ]
      res = subprocess.run(
          command,
          universal_newlines=True,
          stdout=subprocess.PIPE,
          check=True,
      )
      config = util.yaml_safe_load(res.stdout)
  
      ips = config["environment"]["pod_spec"]["spec"][
          "imagePullSecrets"
      ]
  
      assert ips == exp_secrets, (ips, exp_secrets)
  
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 7 for calling a global function with example usage: test_tensorboard_inherit_image_pull_secrets() without return types