code: def test_run_local():
      res = runner.invoke(
          cli.run_local,
          [
              "-f",
              f_flavor,
              "-m",
              f_model_uri,
              "-t",
              f_target,
              "--name",
              f_name,
          ],
      )
      assert f"Deployed locally at the key {f_name}" in res.stdout
      assert f"using the model from {f_model_uri}." in res.stdout
      assert (
          f"It's flavor is {f_flavor} and config is {{}}" 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 11 for calling a global function with example usage: test_run_local() without return types