class_docstr: Normalizer tests
class_docstr_tok: ["Normalizer","tests"]
docstr: Normalizer - Load From Config with send_to_artifacts flag
docstr_tok: ["Normalizer","-","Load","From","Config","with","send_to_artifacts","flag"]
code: def test_load_from_config_with_flag(self):
      """Normalizer - Load From Config with send_to_artifacts flag"""
      config = {
          "logs": {
              "cloudwatch:flow_logs": {
                  "schema": {
                      "source": "string",
                      "destination": "string",
                      "destport": "string",
                  },
                  "configuration": {
                      "normalization": {
                          "ip_address": [
                              {
                                  "path": ["destination"],
                                  "function": "Destination IP addresses",
                              }
                          ],
                          "port": [
                              {
                                  "path": ["destport"],
                                  "function": "Destination port number",
                                  "send_to_artifacts": False,
                              }
                          ],
                      }
                  },
              }
          }
      }
      normalizer = Normalizer.load_from_config(config)
  
      record = {
          "source": "1.1.1.2",
          "destination": "2.2.2.2",
          "destport": "54321",
      }
  
      normalizer.normalize(record, "cloudwatch:flow_logs")
  
      expect_result = {
          "source": "1.1.1.2",
          "destination": "2.2.2.2",
          "destport": "54321",
          "streamalert_normalization": {
              "streamalert_record_id": MOCK_RECORD_ID,
              "ip_address": [
                  {
                      "values": ["2.2.2.2"],
                      "function": "Destination IP addresses",
                  }
              ],
              "port": [
                  {
                      "values": ["54321"],
                      "function": "Destination port number",
                      "send_to_artifacts": False,
                  }
              ],
          },
      }
  
      assert_equal(record, expect_result)
  
imports: from mock import Mock, patch
  from nose.tools import assert_equal, assert_false, assert_raises, assert_true
  from streamalert.shared.exceptions import ConfigError
  from streamalert.shared.normalize import Normalizer, NormalizedType
  from tests.unit.streamalert.shared.test_utils import MOCK_RECORD_ID
label_desc: Use image node_id 22 for calling the TestNormalizer obj's underlying member method code with example usage: obj.test_load_from_config_with_flag() without return types