code: def generate_artifacts(firehose_records=False):
      """Generate sample artifacts for unit tests"""
  
      normalized_values = [
          ("normalized_type1", "value1"),
          ("normalized_type2", "value2"),
          ("normalized_type2", "value3"),
          ("normalized_type1", "value1"),
          ("normalized_type2", "value2"),
          ("normalized_type2", "value3"),
      ]
      artifacts = [
          {
              "function": "None",
              "streamalert_record_id": MOCK_RECORD_ID,
              "source_type": "log_type_01_sub_type_01",
              "type": type,
              "value": value,
          }
          for type, value in normalized_values
      ]
  
      if firehose_records:
          return [
              json.dumps(artifact, separators=(",", ":")) + "\n"
              for artifact in artifacts
          ]
  
      return artifacts
  
file_path: streamalert/tests/unit/streamalert/shared/test_utils.py
imports: import json
  from nose.tools import assert_equal, assert_false
  from streamalert.shared import utils
  from streamalert.shared.normalize import Normalizer
label_desc: Use image node_id 8 for calling a global function with example usage: generate_artifacts(firehose_records) and returns: artifacts, unknown