code: def test_cli():
      cli_args = [
          "flash",
          "face_detection",
          "--trainer.fast_dev_run",
          "True",
      ]
      with patch("sys.argv", cli_args), contextlib.suppress(SystemExit):
          main()
  
file_path: lightning-flash/tests/image/face_detection/test_model.py
imports: import contextlib
  from unittest.mock import patch
  import flash
  import pytest
  from flash.__main__ import main
  from flash.core.registry import FlashRegistry
  from flash.core.utilities.imports import _FASTFACE_AVAILABLE
  from flash.image import FaceDetectionData, FaceDetector
label_desc: Use image node_id 3 for calling a global function with example usage: test_cli() without return types