code: def test_create_success():
      client = deployments.get_deploy_client(f_target)
      ret = client.create_deployment(
          f_deployment_id, f_model_uri, f_flavor, config={}
      )
      assert isinstance(ret, dict)
      assert ret["name"] == f_deployment_id
      assert ret["flavor"] == f_flavor
  
      ret2 = client.create_deployment(f_deployment_id, f_model_uri)
      assert ret2["flavor"] is None
  
imports: import os
  from unittest import mock
  import pytest
  from mlflow import deployments
  from mlflow.deployments.plugin_manager import DeploymentPlugins
  from mlflow.exceptions import MlflowException
label_desc: Use image node_id 1 for calling a global function with example usage: test_create_success() without return types