code: def filter_out_ntsc(
      base: Sequence[bindings.v1Notebook],
      target: Sequence[bindings.v1Notebook],
  ) -> List[bindings.v1Notebook]:
      """throw out target notebooks that are not in the base list"""
      accepted_ids = {nb.id for nb in base}
      return list(filter(lambda nb: nb.id in accepted_ids, target))
  
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 2 for calling a global function with example usage: filter_out_ntsc(base, target) and returns: list