code: def parse_output(host, output):
      
      current_file = None
      for line in output.readlines():
          file_name_search = FILE_PATH_REGEX.search(line)
          if file_name_search:
              current_file = file_name_search.group(1)
              continue
          if INVALID_MESSAGE_REGEX.match(line) or INVALID_BYTES_REGEX.match(line):
              print_line(host, current_file, line, "ERROR")
          elif VALID_MESSAGE_REGEX.match(line) or \
                  line.startswith('Starting offset:'):
              continue
          else:
              print_line(host, current_file, line, "UNEXPECTED OUTPUT")
docs: Parse the output of the dump tool and print warnings or error messages
      accordingly.
  
      :param host: the source
      :type host: str
      :param output: the output of the script on host
      :type output: list of str