code: def get_path(url):
      
  
      url = urlsplit(url)
      path = url.path
      if url.query:
          path += "?{}".format(url.query)
      return path
docs: Get the path from a given url, including the querystring.
  
      Args:
          url (str)
      Returns:
          str