code: def _prepare_output(topics_with_wrong_rf, verbose):
      
      out = {}
      topics_count = len(topics_with_wrong_rf)
      out['raw'] = {
          'topics_with_wrong_replication_factor_count': topics_count,
      }
  
      if topics_count == 0:
          out['message'] = 'All topics have proper replication factor.'
      else:
          out['message'] = (
              "{0} topic(s) have replication factor lower than specified min ISR + 1."
          ).format(topics_count)
  
          if verbose:
              lines = (
                  "replication_factor={replication_factor} is lower than min_isr={min_isr} + 1 for {topic}"
                  .format(
                      min_isr=topic['min_isr'],
                      topic=topic['topic'],
                      replication_factor=topic['replication_factor'],
                  )
                  for topic in topics_with_wrong_rf
              )
              out['verbose'] = "Topics:\n" + "\n".join(lines)
      if verbose:
          out['raw']['topics'] = topics_with_wrong_rf
  
      return out
docs: Returns dict with 'raw' and 'message' keys filled.