input: Write a python function to extract page titles and dates from a blog page.
  assert extract_titles_dates('http://example.com/blog') == (['Blog Title 1', 'Blog Title 2'], ['January 1, 2023', 'February 1, 2023'])
  assert extract_titles_dates('http://example.com/blog2') == (['Another Blog Title'], ['March 3, 2023'])
  assert extract_titles_dates('http://example.com/blog3') == ([], [])
output: def extract_titles_dates(url):
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
  
      titles = [title.get_text() for title in soup.find_all('h2', class_='blog-title')]
      dates = [date.get_text() for date in soup.find_all('time', class_='publish-date')]
  
      return (titles, dates)