input: Write a python function to fetch and parse data from a given URL, and return a list of text content from all 'div' elements with class 'data'.
  assert fetch_data('http://example.com/data') == ["Data1", "Data2", "Data3"]
  assert fetch_data('http://anotherexample.com/data') == ["Example1", "Example2"]
  assert fetch_data('http://yetanotherexample.com/data') == ["Sample1", "Sample2", "Sample3"]
output: def fetch_data(url):
      import requests
      from bs4 import BeautifulSoup
      
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      divs = soup.find_all('div', class_='data')
      
      return [div.get_text() for div in divs]