code: def setup_notebooks(
      session: api.Session,
      notebooks: List[bindings.v1LaunchNotebookRequest],
  ) -> Generator[List[bindings.v1Notebook], None, None]:
      created: List[bindings.v1Notebook] = []
      try:
          for nb_req in notebooks:
              r = bindings.post_LaunchNotebook(session, body=nb_req)
              created.append(r.notebook)
          yield created
  
      finally:
          for nb in created:
              bindings.post_KillNotebook(session, notebookId=nb.id)
  
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 1 for calling a global function with example usage: setup_notebooks(session, notebooks) without return types