code: def create_log_tables(config):
      """Create all tables needed for historical search
      Args:
          config (CLIConfig): Loaded StreamAlert config
      Returns:
          bool: False if errors occurred, True otherwise
      """
      if (
          not config["global"]["infrastructure"]
          .get("firehose", {})
          .get("enabled")
      ):
          return True
  
      firehose_config = config["global"]["infrastructure"]["firehose"]
      firehose_s3_bucket_suffix = firehose_config.get(
          "s3_bucket_suffix", "streamalert-data"
      )
      firehose_s3_bucket_name = "{}-{}".format(
          config["global"]["account"]["prefix"],
          firehose_s3_bucket_suffix,
      )
  
      enabled_logs = FirehoseClient.load_enabled_log_sources(
          config["global"]["infrastructure"]["firehose"], config["logs"]
      )
  
      for log_stream_name in enabled_logs:
          if not create_table(
              log_stream_name, firehose_s3_bucket_name, config
          ):
              return False
  
      return True
  
imports: from streamalert.shared.firehose import FirehoseClient
  from streamalert.shared.utils import get_database_name, get_data_file_format
  from streamalert.shared.alert import Alert
  from streamalert.shared.athena import AthenaClient
  from streamalert.shared.config import firehose_alerts_bucket, firehose_data_bucket
  from streamalert.shared.logger import get_logger
  from streamalert_cli.athena import helpers
  from streamalert_cli.helpers import continue_prompt, record_to_schema
  from streamalert_cli.utils import CLICommand, generate_subparser, set_parser_epilog, UniqueSortedListAction
label_desc: Use image node_id 7 for calling a global function with example usage: create_log_tables(config) and returns: True, True, False