input: Write a python function to extract all the links from a given URL using BeautifulSoup.
  assert extract_links("https://example.com") == ["https://example.com/page1", "https://example.com/page2"]
  assert extract_links("https://anotherexample.com") == ["https://anotherexample.com/home", "https://anotherexample.com/about"]
  assert extract_links("https://yetanotherexample.com") == []
output: def extract_links(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