code: def parse_url_query_params(url, fragment=True):
      
      parsed_url = urlparse(url)
      if fragment:
          url_query = parse_qsl(parsed_url.fragment)
      else:
          url_query = parse_qsl(parsed_url.query)
      # login_response_url_query can have multiple key
      url_query = dict(url_query)
      return url_query
docs: Parse url query params
  
      :param fragment: bool: flag is used for parsing oauth url
      :param url: str: url string
      :return: dict