input: Write a function to scrape a given website and extract all the hyperlinks from the webpage. If the website is inaccessible or the webpage does not contain any hyperlinks, return an empty list.
  assert scrape_hyperlinks('<http://example.com>')==['link1', 'link2']
  assert scrape_hyperlinks('<http://example.com/no_links>')==[]
  assert scrape_hyperlinks('<http://invalid_url>')==[]
output: import requests
  from bs4 import BeautifulSoup
  
  def scrape_hyperlinks(url):
      try:
          response = requests.get(url)
          response.raise_for_status()
      except:
          return []
      
      soup = BeautifulSoup(response.text, 'html.parser')
      links = [a['href'] for a in soup.find_all('a', href=True)]
      
      return links