code: def kill_ntsc(
      session: api.Session, typ: api.NTSC_Kind, ntsc_id: str
  ) -> None:
      if typ == api.NTSC_Kind.notebook:
          bindings.post_KillNotebook(session, notebookId=ntsc_id)
      elif typ == api.NTSC_Kind.tensorboard:
          bindings.post_KillTensorboard(session, tensorboardId=ntsc_id)
      elif typ == api.NTSC_Kind.shell:
          bindings.post_KillShell(session, shellId=ntsc_id)
      elif typ == api.NTSC_Kind.command:
          bindings.post_KillCommand(session, commandId=ntsc_id)
      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 8 for calling a global function with example usage: kill_ntsc(session, typ, ntsc_id) without return types