code: def __onNewValues(self, dateTime, value):
      if self.__range is None:
          self.__range = resamplebase.build_range(
              dateTime, self.getFrequency()
          )
          self.__grouper = BarsGrouper(
              self.__range.getBeginning(), value, self.getFrequency()
          )
      elif self.__range.belongs(dateTime):
          self.__grouper.addValue(value)
      else:
          self.__values.append(self.__grouper.getGrouped())
          self.__range = resamplebase.build_range(
              dateTime, self.getFrequency()
          )
          self.__grouper = BarsGrouper(
              self.__range.getBeginning(), value, self.getFrequency()
          )
  
imports: from pyalgotrade import barfeed
  from pyalgotrade.dataseries import resampled
  from pyalgotrade import resamplebase
  from pyalgotrade import bar
label_desc: Use image node_id 2 for calling the ResampledBarFeed obj's underlying member method code with example usage: obj.__onNewValues(dateTime, value) without return types