code: def test_generate_athena_schema_nested():
      """CLI - Generate Athena schema: nested"""
  
      log_schema = CONFIG["logs"][
          "test_log_type_json_nested_with_data"
      ]["schema"]
      athena_schema = helpers.logs_schema_to_athena_schema(log_schema)
  
      expected_athena_schema = {
          "`date`": "string",
          "`unixtime`": "bigint",
          "`host`": "string",
          "`application`": "string",
          "`environment`": "string",
          "`data`": {
              "`category`": "string",
              "`type`": "bigint",
              "`source`": "string",
          },
      }
  
      assert_equal(athena_schema, expected_athena_schema)
  
file_path: streamalert/tests/unit/streamalert_cli/athena/test_helpers.py
imports: from mock import patch
  from nose.tools import assert_equal, assert_true
  from streamalert_cli.athena import helpers
  from streamalert_cli.config import CLIConfig
  from streamalert.shared.firehose import FirehoseClient
label_desc: Use image node_id 3 for calling a global function with example usage: test_generate_athena_schema_nested() without return types