input: Write a function to parse URL query parameters into a dictionary.
  assert parse_url("http://example.com/page?name=John&age=30&city=New%20York") == {'name': 'John', 'age': '30', 'city': 'New%20York'}
  assert parse_url("http://example.com/page?product=book&price=20") == {'product': 'book', 'price': '20'}
  assert parse_url("http://example.com/page?key=value") == {'key': 'value'}
output: def parse_url(url):
      from urllib.parse import urlparse, parse_qs
  
      parsed_url = urlparse(url)
      query_params = parse_qs(parsed_url.query)
  
      # Convert list values to single values
      return {key: value[0] for key, value in query_params.items()}