code: def test_list():
      res = runner.invoke(cli.list_deployment, ["--target", f_target])
      assert f"[{{'name': '{f_name}'}}]" 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 5 for calling a global function with example usage: test_list() without return types