code: def parse_qs(qs, keep_blank_values=0, strict_parsing=0):
      
      dict = {}
      for name, value in parse_qsl(qs, keep_blank_values, strict_parsing):
          if name in dict:
              dict[name].append(value)
          else:
              dict[name] = [value]
      return dict
docs: Parse a query given as a string argument.
  
          Arguments:
  
          qs: percent-encoded query string to be parsed
  
          keep_blank_values: flag indicating whether blank values in
              percent-encoded queries should be treated as blank strings.
              A true value indicates that blanks should be retained as
              blank strings.  The default false value indicates that
              blank values are to be ignored and treated as if they were
              not included.
  
          strict_parsing: flag indicating what to do with parsing errors.
              If false (the default), errors are silently ignored.
              If true, errors raise a ValueError exception.