code: def test_generate_cloudwatch_monitoring_invalid_config(mock_logging):
      """CLI - Terraform Generate Cloudwatch Monitoring with Invalid Config"""
      CONFIG["global"]["infrastructure"] = {}
  
      cluster_dict = common.infinitedict()
      result = monitoring.generate_monitoring(
          "test", cluster_dict, CONFIG
      )
  
      assert_true(mock_logging.error.called)
      assert_false(result)
  
file_path: streamalert/tests/unit/streamalert_cli/terraform/test_monitoring.py
imports: from mock import patch
  from nose.tools import assert_equal, assert_false, assert_true
  from streamalert_cli.config import CLIConfig
  from streamalert_cli.terraform import common, monitoring
label_desc: Use image node_id 7 for calling a global function with example usage: test_generate_cloudwatch_monitoring_invalid_config(mock_logging) without return types