input: Write a function to fetch and parse HTML content of a given URL using requests and BeautifulSoup.
  assert fetch_and_parse('https://example.com').find('h1').text == 'Example Domain'
  assert fetch_and_parse('https://example.com').find('p').text.startswith('This domain is for use in illustrative examples')
  assert 'Example Domain' in fetch_and_parse('https://example.com').title.string
output: def fetch_and_parse(url):
      import requests
      from bs4 import BeautifulSoup
      
      response = requests.get(url)
      response.raise_for_status()  # Raise an error for bad status codes
      
      soup = BeautifulSoup(response.content, 'html.parser')
      return soup