code: def list_ntsc(
      session: api.Session,
      typ: api.NTSC_Kind,
      workspace_id: Optional[int] = None,
  ) -> Sequence[api.AnyNTSC]:
      if typ == api.NTSC_Kind.notebook:
          return bindings.get_GetNotebooks(
              session, workspaceId=workspace_id
          ).notebooks
      elif typ == api.NTSC_Kind.tensorboard:
          return bindings.get_GetTensorboards(
              session, workspaceId=workspace_id
          ).tensorboards
      elif typ == api.NTSC_Kind.shell:
          return bindings.get_GetShells(
              session, workspaceId=workspace_id
          ).shells
      elif typ == api.NTSC_Kind.command:
          return bindings.get_GetCommands(
              session, workspaceId=workspace_id
          ).commands
      else:
          raise ValueError("unknown type")
  
imports: import uuid
  from typing import Callable, Optional, Sequence, TypeVar
  import pytest
  from determined.common import api
  from determined.common.api import authentication, bindings, certs, errors
  from tests import config
label_desc: Use image node_id 10 for calling a global function with example usage: list_ntsc(session, typ, workspace_id) and returns: bindings, bindings, bindings, bindings