input: Write a function to parse a given URL and print out the protocol, domain name, and path using Python. The function should use the `urllib.parse` module to parse the URL and extract the required components.
  
  assert parse_url('https://www.example.com/path/to/file')==['Protocol: https', 'Domain name: www.example.com', 'Path: /path/to/file']
  assert parse_url('ftp://user:password@ftp.example.com/dir/file.txt')==['Protocol: ftp', 'Domain name: user:password@ftp.example.com', 'Path: /dir/file.txt']
  assert parse_url('http://localhost:8080/')==['Protocol: http', 'Domain name: localhost:8080', 'Path: /']
  assert parse_url('https://subdomain.example.com/')==['Protocol: https', 'Domain name: subdomain.example.com', 'Path: /']
  assert parse_url('https://www.google.com/search?q=python')==['Protocol: https', 'Domain name: www.google.com', 'Path: /search']
output: def parse_url(url):
      from urllib.parse import urlparse
      parsed = urlparse(url)
      return [f'Protocol: {parsed.scheme}', f'Domain name: {parsed.netloc}', f'Path: {parsed.path}']