code: def querydict_to_multidict(query_dict, wrap=None):
      
      wrap = wrap or (lambda val: val)
      return MultiDict(chain.from_iterable(
          six.moves.zip(repeat(key), (wrap(v) for v in vals))
          for key, vals in six.iterlists(query_dict)
      ))
docs: Returns a new `webob.MultiDict` from a `django.http.QueryDict`.
  
      If `wrap` is provided, it's used to wrap the values.