code: def test_user_role_setup() -> None:
      perm_assigments = [
          [
              (1, ["Editor", "Viewer"]),
              (2, ["Viewer"]),
          ],
          [
              (1, ["Viewer"]),
          ],
      ]
      with create_workspaces_with_users(perm_assigments) as (
          workspaces,
          rid_to_creds,
      ):
          assert len(rid_to_creds) == 2
          assert len(workspaces) == 2
  
imports: import contextlib
  from typing import Any, Callable, Dict, Generator, List, NamedTuple, Optional, Tuple
  import pytest
  from determined.common import api
  from determined.common.api import authentication, bindings, errors
  from tests import api_utils
  from tests import config
  from tests.cluster.test_workspace_org import setup_workspaces
  from .test_groups import det_cmd, det_cmd_expect_error, det_cmd_json
  from .test_users import logged_in_user
label_desc: Use image node_id 8 for calling a global function with example usage: test_user_role_setup() without return types