code: def test_workspace_patch_gid() -> None:
      sess = api_utils.determined_test_session(admin=True)
  
      # Make project with workspace.
      resp_w = bindings.post_PostWorkspace(
          sess,
          body=bindings.v1PostWorkspaceRequest(
              name=f"workspace_aug_{uuid.uuid4().hex[:8]}"
          ),
      )
      w = resp_w.workspace
  
      try:
          bindings.patch_PatchWorkspace(
              sess,
              body=bindings.v1PatchWorkspace(
                  name=w.name,
                  agentUserGroup=bindings.v1AgentUserGroup(
                      agentGid=GID,
                      agentGroup=GROUPNAME,
                  ),
              ),
              id=w.id,
          )
  
          resp_p = bindings.post_PostProject(
              sess,
              body=bindings.v1PostProjectRequest(
                  name="workspace_aug_1_project_1",
                  workspaceId=w.id,
              ),
              workspaceId=w.id,
          )
          p = resp_p.project
  
          _check_test_experiment(p.id)
          _check_test_command(w.name)
      finally:
          _delete_workspace_and_check(sess, w)
  
file_path: determined/e2e_tests/tests/cluster/test_agent_user_group.py
imports: import re
  import uuid
  from time import sleep
  import pytest
  from determined.common.api import Session, bindings, errors
  from determined.common.api.bindings import experimentv1State
  from tests import api_utils, command
  from tests import config
  from tests import experiment
label_desc: Use image node_id 5 for calling a global function with example usage: test_workspace_patch_gid() without return types