code: def test_rbac_template_create() -> None:
      with rbac.create_workspaces_with_users(
          [
              [  # can create
                  (0, ["Editor"]),
                  (1, ["WorkspaceAdmin"]),
              ],
              [  # cannot create
                  (0, ["Viewer"]),
              ],
          ]
      ) as (workspaces, creds):
          for uid in creds:
              setup_template_test(
                  api_utils.determined_test_session(creds[uid]),
                  workspaces[0].id,
              )
              with pytest.raises(errors.ForbiddenException):
                  setup_template_test(
                      api_utils.determined_test_session(creds[uid]),
                      workspaces[1].id,
                  )
  
imports: from typing import Optional, Tuple
  import pytest
  from determined.common import util
  from determined.common.api import NTSC_Kind, Session, bindings, errors
  from tests import api_utils
  from tests import command
  from tests import config
  from tests import experiment
  from tests import template
  from tests.cluster import test_rbac
  from tests.cluster import test_users
label_desc: Use image node_id 11 for calling a global function with example usage: test_rbac_template_create() without return types