code: def generate_table_results(output=None, without_header=None):
      
      array = []
      str_output = str(output)
  
      if not without_header:
          array.append('RESULT')
          array.append('-' * max(6, len(str_output)))
  
      array.append(str_output)
      return os.linesep.join(array)
docs: Convert returned data from non-list actions into a nice table for command line usage