code: def test_workspace_partial_patch() -> None:
      # TODO(ilia): Implement better partial patch with fieldmasks.
      # This may need a changes to the way python bindings generate json payloads.
      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]}",
              agentUserGroup=bindings.v1AgentUserGroup(
                  agentGid=GID, agentGroup=GROUPNAME
              ),
          ),
      )
  
      w = resp_w.workspace
      new_name = w.name + " but new"
  
      try:
          # Does not reset AUG.
          resp_patch = bindings.patch_PatchWorkspace(
              sess,
              body=bindings.v1PatchWorkspace(
                  name=new_name,
              ),
              id=w.id,
          )
          assert resp_patch.workspace.name == new_name
          assert resp_patch.workspace.agentUserGroup
          assert resp_patch.workspace.agentUserGroup.agentGid == GID
      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 6 for calling a global function with example usage: test_workspace_partial_patch() without return types