class_docstr: Handles preparing and sending data from the classifier function to Kinesis Firehose
docstr: Add the records to the proper list of cached records, based on log type
  
  Args:
      payloads (list): List of PayloadRecord items that include parsed records
docstr_tok: ["Add","the","records","to","the","proper","list","of","cached","records",",","based","on","log","type","Args",":","payloads","(","list",")",":","List","of","PayloadRecord","items","that","include","parsed","records"]
code: def _categorize_records(self, payloads):
      """Add the records to the proper list of cached records, based on log type
  
      Args:
          payloads (list): List of PayloadRecord items that include parsed records
      """
      # Create a dictionary to hold parsed payloads by log type.
      # Firehose needs this information to send to its corresponding
      # delivery stream.
      categorized_records = defaultdict(list)
  
      for payload in payloads:
          # Only send payloads with enabled log sources
          if not self.enabled_log_source(payload.log_schema_type):
              continue
  
          # Add the records to the dictionary of categorized records
          categorized_records[payload.log_schema_type].extend(
              payload.parsed_records
          )
  
      return categorized_records
  
imports: from collections import defaultdict
  import json
  import hashlib
  import re
  import backoff
  import boto3
  from botocore.exceptions import ClientError, HTTPClientError
  from botocore.exceptions import ConnectionError
  from streamalert.shared import CLASSIFIER_FUNCTION_NAME
  import streamalert.shared.helpers.boto
  from streamalert.shared.logger import get_logger
  from streamalert.shared.metrics import MetricLogger
  from streamalert.shared.backoff_handlers import backoff_handler, giveup_handler, success_handler
label_desc: Use image node_id 7 for calling the FirehoseClient obj's underlying member method code with example usage: obj._categorize_records(payloads) and returns: categorized_records