code: def test_create_user(store):
      username1 = random_str()
      password1 = random_str()
      user1 = _user_maker(store, username1, password1)
      assert user1.username == username1
      assert user1.password_hash != password1
      assert user1.is_admin is False
  
      # error on duplicate
      with pytest.raises(
          MlflowException,
          match=rf"User \(username={username1}\) already exists",
      ) as exception_context:
          _user_maker(store, username1, password1)
      assert exception_context.value.error_code == ErrorCode.Name(
          RESOURCE_ALREADY_EXISTS
      )
  
      # slightly different name is ok
      username2 = username1 + "_2"
      password2 = password1 + "_2"
      user2 = _user_maker(store, username2, password2, is_admin=True)
      assert user2.username == username2
      assert user2.password_hash != password2
      assert user2.is_admin is True
  
      # invalid username will fail
      with pytest.raises(
          MlflowException, match=r"Username cannot be empty"
      ) as exception_context:
          _user_maker(store, None, None)
      assert exception_context.value.error_code == ErrorCode.Name(
          INVALID_PARAMETER_VALUE
      )
      with pytest.raises(
          MlflowException, match=r"Username cannot be empty"
      ) as exception_context:
          _user_maker(store, "", "")
      assert exception_context.value.error_code == ErrorCode.Name(
          INVALID_PARAMETER_VALUE
      )
  
imports: import pytest
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE, RESOURCE_ALREADY_EXISTS, RESOURCE_DOES_NOT_EXIST, ErrorCode
  from mlflow.server.auth.entities import ExperimentPermission, RegisteredModelPermission, User
  from mlflow.server.auth.permissions import ALL_PERMISSIONS, EDIT, READ
  from mlflow.server.auth.sqlalchemy_store import SqlAlchemyStore
  from tests.helper_functions import random_str
label_desc: Use image node_id 5 for calling a global function with example usage: test_create_user(store) without return types