code: def artifact_extractor_enabled(config):
      """Check if Artifactor Extractor enabled.
      Args:
          config (dict): The loaded config from the 'conf/' directory
  
      Returns:
          bool: return True is "artifact_extract" is enabled in conf/global.json
      """
      if (
          not config["global"]["infrastructure"]
          .get("artifact_extractor", {})
          .get("enabled", False)
      ):
          return False
  
      # Artifact Extractor is enabled once when firehose is enabled.
      if (
          not config["global"]["infrastructure"]
          .get("firehose", {})
          .get("enabled", False)
      ):
          return False
  
      return True
  
imports: from collections import defaultdict, OrderedDict
  import json
  import os
  import re
  from streamalert.shared import CLUSTERED_FUNCTIONS
  from streamalert.shared.exceptions import ConfigError
  from streamalert.shared.logger import get_logger
label_desc: Use image node_id 12 for calling a global function with example usage: artifact_extractor_enabled(config) and returns: True, False, False