code: def test_get_user(client, monkeypatch):
      username = random_str()
      password = random_str()
      with User(ADMIN_USERNAME, ADMIN_PASSWORD, monkeypatch):
          client.create_user(username, password)
  
      with User(ADMIN_USERNAME, ADMIN_PASSWORD, monkeypatch):
          user = client.get_user(username)
      assert user.username == username
  
      with assert_unauthenticated():
          client.get_user(username)
  
      username2 = random_str()
      password2 = random_str()
      with User(ADMIN_USERNAME, ADMIN_PASSWORD, monkeypatch):
          client.create_user(username2, password2)
      with User(
          username2, password2, monkeypatch
      ), assert_unauthorized():
          client.get_user(username)
  
imports: import os
  from contextlib import contextmanager
  import pytest
  import mlflow
  from mlflow import MlflowException
  from mlflow.environment_variables import MLFLOW_TRACKING_PASSWORD, MLFLOW_TRACKING_USERNAME
  from mlflow.protos.databricks_pb2 import PERMISSION_DENIED, RESOURCE_DOES_NOT_EXIST, UNAUTHENTICATED, ErrorCode
  from mlflow.server.auth import auth_config
  from mlflow.server.auth.client import AuthServiceClient
  from mlflow.utils.os import is_windows
  from tests.helper_functions import random_str
  from tests.server.auth.auth_test_utils import ADMIN_PASSWORD, ADMIN_USERNAME, NEW_PERMISSION, PERMISSION, User, create_user
  from tests.tracking.integration_test_utils import _init_server
label_desc: Use image node_id 7 for calling a global function with example usage: test_get_user(client, monkeypatch) without return types