code: def test_create():
      res = runner.invoke(
          cli.create_deployment,
          [
              "--flavor",
              f_flavor,
              "--model-uri",
              f_model_uri,
              "--target",
              f_target,
              "--name",
              f_name,
          ],
      )
      assert f"{f_flavor} deployment {f_name} is created" in res.stdout
      res = runner.invoke(
          cli.create_deployment,
          [
              "-f",
              f_flavor,
              "-m",
              f_model_uri,
              "-t",
              f_target,
              "--name",
              f_name,
          ],
      )
      assert f"{f_flavor} deployment {f_name} is created" in res.stdout
  
imports: import json
  import os
  from unittest import mock
  import pytest
  from click.testing import CliRunner
  from mlflow.deployments import cli
  from mlflow.exceptions import MlflowException
label_desc: Use image node_id 1 for calling a global function with example usage: test_create() without return types