code: def test_recipes_get_artifact_with_bad_artifact_name_fails():
      result = CliRunner().invoke(
          recipes_cli.get_artifact,
          args="--artifact foo",
          env={MLFLOW_RECIPES_PROFILE.name: "local"},
      )
      assert result.exit_code != 0
      assert isinstance(result.exception, MlflowException)
  
file_path: mlflow/tests/recipes/test_cli.py
imports: import pytest
  from click.testing import CliRunner
  import mlflow.recipes.cli
  from mlflow.environment_variables import MLFLOW_RECIPES_PROFILE
  from mlflow.exceptions import MlflowException
label_desc: Use image node_id 8 for calling a global function with example usage: test_recipes_get_artifact_with_bad_artifact_name_fails() without return types