code: def query_string_to_dict(query):
          
  
          query_params = {}
  
          for key_value in query.split("&"):
              key_value_pair = key_value.split("=", 1)
  
              key = key_value_pair[0] if len(key_value_pair) >= 1 else ""
              value = key_value_pair[1] if len(key_value_pair) == 2 else ""
  
              query_params[key] = value
  
          return query_params
docs: Convert a string to a query dict.
  
          Args:
              query (str): The query string.
  
          Returns:
              obj: The key value object with query params.
  
          Note:
              This method does the same as urllib.parse.parse_qsl except
              that it doesn't actually decode the values.