<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def query_string_to_dict(query):
 """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. """


        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