code: def test_client_create_registered_model_permission(
      client, monkeypatch
  ):
      name = random_str()
      username, password = create_user(client.tracking_uri)
  
      with User(ADMIN_USERNAME, ADMIN_PASSWORD, monkeypatch):
          rmp = client.create_registered_model_permission(
              name, username, PERMISSION
          )
      assert rmp.name == name
      assert rmp.permission == PERMISSION
  
      with assert_unauthenticated():
          client.create_registered_model_permission(
              name, username, PERMISSION
          )
  
      with User(username, password, monkeypatch), assert_unauthorized():
          client.create_registered_model_permission(
              name, username, PERMISSION
          )
  
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 15 for calling a global function with example usage: test_client_create_registered_model_permission(client, monkeypatch) without return types