code: def merge_required_outputs(user_config, prefix):
      """Iterates through the required outputs and merges them with the user outputs
  
      Args:
          user_config (dict): Loaded user outputs dictionary from conf/outputs.json
          prefix (str): Prefix for this StreamAlert deployment to be injected into
              resource names
  
      Returns:
          dict: Entire formatted outputs dictionary, including required items and
              user defined outputs
      """
      config = user_config.copy()
      for service, value in REQUIRED_OUTPUTS.items():
          # Format the resource with the prefix value
          for output, resource in value.items():
              value[output] = resource.format(prefix=prefix)
  
          # Add the outputs for this service if none are defined
          if service not in config:
              config[service] = value
              continue
  
          # Merge the outputs with existing ones for this service
          config[service].update(value)
  
      return config
  
label_desc: Use image node_id 2 for calling a global function with example usage: merge_required_outputs(user_config, prefix) and returns: config