input: Write a function to encode a URL using `urllib.parse.quote_plus`.
  assert encode_url('https://example.com/test?name=example name') == 'https%3A%2F%2Fexample.com%2Ftest%3Fname%3Dexample+name'
  assert encode_url('https://example.com/test?query=hello world&lang=en') == 'https%3A%2F%2Fexample.com%2Ftest%3Fquery%3Dhello+world%26lang%3Den'
  assert encode_url('https://example.com/some path/') == 'https%3A%2F%2Fexample.com%2Fsome+path%2F'
output: def encode_url(url):
      from urllib.parse import quote_plus
      return quote_plus(url)