input: Write a function to create a Python web scraper that collects all the links from a given website URL. The function should take a URL as input, fetch the webpage content, and print out all the links found on the page. For an empty URL, the function should do nothing.
  
  def collect_links(url):
      if not url:
          return
      import requests as req
      from bs4 import BeautifulSoup
      r = req.get(url)
      soup = BeautifulSoup(r.text, "html.parser")
      links = soup.find_all('a')
      for link in links:
          print(link.get('href'))
  
  assert collect_links("http://www.example.com/") is None
  assert collect_links("") is None
output: def collect_links(url):
      if not url:
          return
      import requests as req
      from bs4 import BeautifulSoup
      r = req.get(url)
      soup = BeautifulSoup(r.text, "html.parser")
      links = soup.find_all('a')
      for link in links:
          print(link.get('href'))