code: def test_group_errors() -> None:
      with logged_in_user(conf.ADMIN_CREDENTIALS):
          fake_group = get_random_string()
          group_name = get_random_string()
          det_cmd(["user-group", "create", group_name], check=True)
  
          # Creating group with same name.
          det_cmd_expect_error(
              ["user-group", "create", group_name], "already exists"
          )
  
          # Adding non existent users to groups.
          fake_user = get_random_string()
          det_cmd_expect_error(
              [
                  "user-group",
                  "create",
                  fake_group,
                  "--add-user",
                  fake_user,
              ],
              "not find",
          )
          det_cmd_expect_error(
              ["user-group", "add-user", group_name, fake_user],
              "not find",
          )
  
          # Removing a non existent user from group.
          det_cmd_expect_error(
              ["user-group", "remove-user", group_name, fake_user],
              "not find",
          )
  
          # Removing a user not in a group.
          det_cmd_expect_error(
              ["user-group", "remove-user", group_name, "admin"],
              "Not Found",
          )
  
          # Describing a non existent group.
          det_cmd_expect_error(
              ["user-group", "describe", get_random_string()],
              "not find",
          )
  
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 7 for calling a global function with example usage: test_group_errors() without return types