input: Write a python function to fetch blog post titles, texts, and tags from a given URL using BeautifulSoup.
  assert isinstance(get_blog_posts("https://www.example.com"), list)
  assert all('title' in post and 'text' in post and 'tags' in post for post in get_blog_posts("https://www.example.com"))
output: def get_blog_posts(url):
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
  
      posts = []
      for article in soup.find_all('article'):
          title = article.find('h2').text if article.find('h2') else ''
          text = article.find('p').text if article.find('p') else ''
          tags = [tag.text for tag in article.find_all('a', class_='tag')]
  
          posts.append({
              'title': title,
              'text': text,
              'tags': tags
          })
  
      return posts