input: Write a function to parse the given URL and return the protocol, domain name, and path as a tuple. The function should use the `urllib.parse.urlparse` method to achieve this.
  assert parse_url('https://www.example.com/path/to/file')==('https', 'www.example.com', '/path/to/file')
  assert parse_url('http://sub.domain.com/some/path')==('http', 'sub.domain.com', '/some/path')
  assert parse_url('ftp://ftp.server.org/dir/file')==('ftp', 'ftp.server.org', '/dir/file')
  assert parse_url('https://www.another-example.net/')==('https', 'www.another-example.net', '/')
  assert parse_url('http://localhost:8080/project/page')==('http', 'localhost:8080', '/project/page')
output: def parse_url(url):
      from urllib.parse import urlparse
      parsed = urlparse(url)
      return (parsed.scheme, parsed.netloc, parsed.path)