code: def get_ntsc_details(
      session: api.Session, typ: NTSC_Kind, ntsc_id: str
  ) -> AnyNTSC:
      if typ == NTSC_Kind.notebook:
          return bindings.get_GetNotebook(
              session, notebookId=ntsc_id
          ).notebook
      elif typ == NTSC_Kind.tensorboard:
          return bindings.get_GetTensorboard(
              session, tensorboardId=ntsc_id
          ).tensorboard
      elif typ == NTSC_Kind.shell:
          return bindings.get_GetShell(session, shellId=ntsc_id).shell
      elif typ == NTSC_Kind.command:
          return bindings.get_GetCommand(
              session, commandId=ntsc_id
          ).command
      else:
          raise ValueError("unknown type")
  
file_path: determined/harness/determined/common/api/_util.py
imports: import enum
  from typing import Callable, Iterator, Optional, Tuple, TypeVar, Union
  import urllib3
  from determined.common import api, util
  from determined.common.api import bindings
label_desc: Use image node_id 3 for calling a global function with example usage: get_ntsc_details(session, typ, ntsc_id) and returns: bindings, bindings, bindings, bindings