class_docstr: SQSClient for sending batches of classified records to the Rules Engine function
class_docstr_tok: ["SQSClient","for","sending","batches","of","classified","records","to","the","Rules","Engine","function"]
docstr: Perform any final operations for this response, such as metric logging, etc
  
  Args:
      response (string|bool): MessageId or False if this request failed
      count (int): The size of the batch being sent to be logged as successful or failed
docstr_tok: ["Perform","any","final","operations","for","this","response",",","such","as","metric","logging",",","etc","Args",":","response","(","string|bool",")",":","MessageId","or","False","if","this","request","failed","count","(","int",")",":","The","size","of","the","batch","being","sent","to","be","logged","as","successful","or","failed"]
code: def _finalize(self, response, count):
      """Perform any final operations for this response, such as metric logging, etc
  
      Args:
          response (string|bool): MessageId or False if this request failed
          count (int): The size of the batch being sent to be logged as successful or failed
      """
      if (
          not response
      ):  # Could happen in the case of backoff failing entirely
          MetricLogger.log_metric(
              FUNCTION_NAME, MetricLogger.SQS_FAILED_RECORDS, count
          )
          return
  
      MetricLogger.log_metric(
          FUNCTION_NAME, MetricLogger.SQS_RECORDS_SENT, count
      )
  
      LOGGER.debug(
          "Successfully sent message with %d records to %s with MessageId %s",
          count,
          self.queue.url,
          response,
      )
  
imports: import json
  import os
  import backoff
  import boto3
  from botocore.exceptions import ClientError, HTTPClientError
  from botocore.exceptions import ConnectionError
  from streamalert.shared import CLASSIFIER_FUNCTION_NAME
  from streamalert.shared.helpers import 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 4 for calling the SQSClient obj's underlying member method code with example usage: obj._finalize(response, count) without return types