class_docstr: Handles preparing and sending data from the classifier function to Kinesis Firehose
docstr: Get a Firehose client for sending logs
  
  Args:
      firehose_config (dict): Loaded Firehose config from global.json
      log_sources (dict): Loaded logs.json file
  
  Returns:
      FirehoseClient or None: If disabled, this returns None, otherwise it returns an
          instanec of FirehoseClient
docstr_tok: ["Get","a","Firehose","client","for","sending","logs","Args",":","firehose_config","(","dict",")",":","Loaded","Firehose","config","from","global.json","log_sources","(","dict",")",":","Loaded","logs.json","file","Returns",":","FirehoseClient","or","None",":","If","disabled",",","this","returns","None",",","otherwise","it","returns","an","instanec","of","FirehoseClient"]
code: def load_from_config(cls, prefix, firehose_config, log_sources):
      """Get a Firehose client for sending logs
  
      Args:
          firehose_config (dict): Loaded Firehose config from global.json
          log_sources (dict): Loaded logs.json file
  
      Returns:
          FirehoseClient or None: If disabled, this returns None, otherwise it returns an
              instanec of FirehoseClient
      """
      if not firehose_config.get("enabled"):
          return
      return cls(
          prefix=prefix,
          firehose_config=firehose_config,
          log_sources=log_sources,
      )
  
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 15 for calling the FirehoseClient obj's underlying member method code with example usage: obj.load_from_config(cls, prefix, firehose_config, log_sources) and returns: cls