input: Write a python function to extract all hyperlinks from a given URL.
  assert get_links('https://example.com') == ['https://example.com/link1', 'https://example.com/link2']
  assert get_links('https://test.com') == ['https://test.com/home', 'https://test.com/about']
  assert get_links('https://another-example.com') == ['https://another-example.com/page1', 'https://another-example.com/page2']
output: def get_links(url):
      import requests
      from bs4 import BeautifulSoup
      import urllib.parse
  
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
      links = []
  
      for a_tag in soup.find_all('a', href=True):
          link = a_tag['href']
          if not link.startswith('http'):
              link = urllib.parse.urljoin(url, link)
          links.append(link)
      
      return links