class_docstr: Handles preparing and sending data from the classifier function to Kinesis Firehose
docstr: Remove special characters from parsed record keys
  
  This is required when searching in Athena.  Keys can only have
  a period or underscore
  
  Args:
      record (dict): Original parsed record
  
  Returns:
      dict: A sanitized record
docstr_tok: ["Remove","special","characters","from","parsed","record","keys","This","is","required","when","searching","in","Athena",".","Keys","can","only","have","a","period","or","underscore","Args",":","record","(","dict",")",":","Original","parsed","record","Returns",":","dict",":","A","sanitized","record"]
code: def sanitize_keys(cls, record):
      """Remove special characters from parsed record keys
  
      This is required when searching in Athena.  Keys can only have
      a period or underscore
  
      Args:
          record (dict): Original parsed record
  
      Returns:
          dict: A sanitized record
      """
      new_record = {}
      for key, value in record.items():
          sanitized_key = cls.sanitized_value(key)
  
          # Handle nested objects
          if isinstance(value, dict):
              new_record[sanitized_key] = cls.sanitize_keys(record[key])
          else:
              new_record[sanitized_key] = record[key]
  
      return new_record
  
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 5 for calling the FirehoseClient obj's underlying member method code with example usage: obj.sanitize_keys(cls, record) and returns: new_record