input: Write a function to parse the given URL and return the protocol, domain name, and path as a tuple.
  import urllib.parse
  def parse_url(url):
      parsed_url = urllib.parse.urlparse(url)
      protocol = parsed_url.scheme
      domain_name = parsed_url.netloc
      path = parsed_url.path
      return (protocol, domain_name, path)
  assert parse_url('https://www.example.com/path/to/file')==('https', 'www.example.com', '/path/to/file')
  assert parse_url('http://test.com/home')==('http', 'test.com', '/home')
  assert parse_url('https://api.domain.com/resource/1')==('https', 'api.domain.com', '/resource/1')
  assert parse_url('ftp://files.server.net/directory')==('ftp', 'files.server.net', '/directory')
  assert parse_url('https://www.google.com')==('https', 'www.google.com', '')
output: import urllib.parse
  def parse_url(url):
      parsed_url = urllib.parse.urlparse(url)
      protocol = parsed_url.scheme
      domain_name = parsed_url.netloc
      path = parsed_url.path
      return (protocol, domain_name, path)