code: def __init__(self, dateTime):
      super(DayRange, self).__init__()
      self.__begin = datetime.datetime(
          dateTime.year, dateTime.month, dateTime.day
      )
      if not dt.datetime_is_naive(dateTime):
          self.__begin = dt.localize(self.__begin, dateTime.tzinfo)
      self.__end = self.__begin + datetime.timedelta(days=1)
  
imports: import abc
  import datetime
  import six
  from pyalgotrade.utils import dt
  from pyalgotrade import bar
label_desc: Use image node_id 1 to create a new DayRange object from inherited base classes: TimeRange with example: obj = DayRange(dateTime)