input: Write a python function to compare two dates and return whether the first date is before, after, or equal to the second date.
  assert DateChecker(datetime.datetime(2020, 8, 3), datetime.datetime(2020, 8, 10)).check_dates() == "date1 is before date2"
  assert DateChecker(datetime.datetime(2020, 8, 10), datetime.datetime(2020, 8, 3)).check_dates() == "date1 is after date2"
  assert DateChecker(datetime.datetime(2020, 8, 10), datetime.datetime(2020, 8, 10)).check_dates() == "date1 is equal to date2"
output: import datetime
  
  class DateChecker:
      def __init__(self, date1, date2):
          self.date1 = date1
          self.date2 = date2
  
      def check_dates(self):
          if self.date1 < self.date2:
              return "date1 is before date2"
          elif self.date1 > self.date2:
              return "date1 is after date2"
          else:
              return "date1 is equal to date2"