input: Write a python function to fetch all hyperlinks from a given URL and return them as a list.
  assert fetch_hyperlinks('https://example.com')==['https://example.com/link1', 'https://example.com/link2', 'https://example.com/link3']
  assert fetch_hyperlinks('https://anotherexample.com')==['https://anotherexample.com/home', 'https://anotherexample.com/about']
output: def fetch_hyperlinks(url):
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
      links = []
  
      for link in soup.find_all('a', href=True):
          links.append(link['href'])
  
      return links