code: def _combine_parsed_configs(old_payload):
      
      old_configs = old_payload['config']
  
      def _perform_includes(block):
          for stmt in block:
              if 'block' in stmt:
                  stmt['block'] = list(_perform_includes(stmt['block']))
              if 'includes' in stmt:
                  for index in stmt['includes']:
                      config = old_configs[index]['parsed']
                      for stmt in _perform_includes(config):
                          yield stmt
              else:
                  yield stmt  # do not yield include stmt itself
  
      combined_config = {
          'file': old_configs[0]['file'],
          'status': 'ok',
          'errors': [],
          'parsed': []
      }
  
      for config in old_configs:
          combined_config['errors'] += config.get('errors', [])
          if config.get('status', 'ok') == 'failed':
              combined_config['status'] = 'failed'
  
      first_config = old_configs[0]['parsed']
      combined_config['parsed'] += _perform_includes(first_config)
  
      combined_payload = {
          'status': old_payload.get('status', 'ok'),
          'errors': old_payload.get('errors', []),
          'config': [combined_config]
      }
      return combined_payload
docs: Combines config files into one by using include directives.
  
      :param old_payload: payload that's normally returned by parse()
      :return: the new combined payload