code: def checkNow(self, dateTime):
      if self.__range is not None and not self.__range.belongs(
          dateTime
      ):
          self.appendWithDateTime(
              self.__grouper.getDateTime(), self.__grouper.getGrouped()
          )
          self.__grouper = None
          self.__range = None
  
imports: import abc
  import six
  from pyalgotrade import dataseries
  from pyalgotrade.dataseries import bards
  from pyalgotrade import bar
  from pyalgotrade import resamplebase
label_desc: Use image node_id 5 for calling the DSResampler obj's underlying member method code with example usage: obj.checkNow(dateTime) without return types