code: def test_rbac_template_view() -> None:
      admin_session = api_utils.determined_test_session(
          conf.ADMIN_CREDENTIALS
      )
      with rbac.create_workspaces_with_users(
          [
              [  # can view
                  (0, ["Editor"]),
                  (1, ["WorkspaceAdmin"]),
              ],
              [],  # none can view
          ]
      ) as (workspaces, creds):
          _, tpl0 = setup_template_test(admin_session, workspaces[0].id)
          _, tpl1 = setup_template_test(admin_session, workspaces[1].id)
          for uid in creds:
              usession = api_utils.determined_test_session(creds[uid])
              bindings.get_GetTemplate(usession, templateName=tpl0.name)
              with pytest.raises(errors.NotFoundException):
                  bindings.get_GetTemplate(
                      usession, templateName=tpl1.name
                  )
  
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 13 for calling a global function with example usage: test_rbac_template_view() without return types