code: def test_group_updates() -> None:
      with logged_in_user(conf.ADMIN_CREDENTIALS):
          group_name = get_random_string()
          det_cmd(["user-group", "create", group_name], check=True)
  
          # Adds admin and determined to our group then remove determined.
          det_cmd(
              [
                  "user-group",
                  "add-user",
                  group_name,
                  "admin,determined",
              ],
              check=True,
          )
          det_cmd(
              ["user-group", "remove-user", group_name, "determined"],
              check=True,
          )
  
          group_desc = det_cmd_json(
              ["user-group", "describe", group_name, "--json"]
          )
          assert group_desc["name"] == group_name
          assert len(group_desc["users"]) == 1
          assert group_desc["users"][0]["username"] == "admin"
  
          # Rename our group.
          new_group_name = get_random_string()
          det_cmd(
              ["user-group", "change-name", group_name, new_group_name],
              check=True,
          )
  
          # Old name is gone.
          det_cmd_expect_error(
              ["user-group", "describe", group_name, "--json"],
              "not find",
          )
  
          # New name is here.
          group_desc = det_cmd_json(
              ["user-group", "describe", new_group_name, "--json"]
          )
          assert group_desc["name"] == new_group_name
          assert len(group_desc["users"]) == 1
          assert group_desc["users"][0]["username"] == "admin"
  
file_path: determined/e2e_tests/tests/cluster/test_groups.py
imports: import json
  import subprocess
  from typing import Any, List
  import pytest
  from tests import config
  from .test_users import get_random_string, logged_in_user
label_desc: Use image node_id 5 for calling a global function with example usage: test_group_updates() without return types