code: def test_tsb_listed() -> None:
      with create_workspaces_with_users(
          [
              [
                  (0, ["Editor"]),
                  (1, ["Viewer"]),
              ],
          ]
      ) as ([workspace], creds):
          pid = bindings.post_PostProject(
              api_utils.determined_test_session(creds[0]),
              body=bindings.v1PostProjectRequest(
                  name="test", workspaceId=workspace.id
              ),
              workspaceId=workspace.id,
          ).project.id
  
          session = api_utils.determined_test_session(creds[0])
  
          with logged_in_user(creds[0]):
              # experiment for tensorboard
              experiment_id = exp.create_experiment(
                  conf.fixtures_path("no_op/single.yaml"),
                  conf.fixtures_path("no_op"),
                  ["--project_id", str(pid)],
              )
  
              created_id = api_utils.launch_ntsc(
                  session,
                  workspace.id,
                  api.NTSC_Kind.tensorboard,
                  experiment_id,
              ).id
  
              # list tensorboards and make sure it's included in the response.
              tsbs = bindings.get_GetTensorboards(
                  session, workspaceId=workspace.id
              ).tensorboards
              assert len(tsbs) == 1, "should be one tensorboard"
              assert (
                  tsbs[0].id == created_id
              ), "should be the tensorboard we created"
  
              tsbs = bindings.get_GetTensorboards(
                  api_utils.determined_test_session(
                      credentials=creds[1]
                  ),
                  workspaceId=workspace.id,
              ).tensorboards
              assert len(tsbs) == 1, "should be one tensorboard"
              assert (
                  tsbs[0].id == created_id
              ), "should be the tensorboard we created"
  
file_path: determined/e2e_tests/tests/cluster/test_rbac_ntsc.py
imports: import contextlib
  from typing import Generator, List, Optional, Sequence
  import pytest
  import tests.config
  from determined.common import api
  from determined.common.api import authentication, bindings, errors
  from tests import api_utils
  from tests import experiment
  from tests.cluster.test_rbac import create_workspaces_with_users, rbac_disabled
  from tests.cluster.test_workspace_org import setup_workspaces
  from .test_groups import det_cmd_json
  from .test_users import logged_in_user
label_desc: Use image node_id 7 for calling a global function with example usage: test_tsb_listed() without return types