input: Write a python function to fetch data from a given URL and extract the JSON content.
  assert fetch_data("https://jsonplaceholder.typicode.com/posts/1")['userId'] == 1
  assert fetch_data("https://jsonplaceholder.typicode.com/posts/2")['title'] == "qui est esse"
  assert fetch_data("https://jsonplaceholder.typicode.com/posts/3")['body'].startswith("quia et suscipit")
output: import requests
  
  def fetch_data(url):
      response = requests.get(url)
      response.raise_for_status()  # Ensure we raise an error for bad responses
      return response.json()