code: def addValue(self, value):
      # Update or initialize BarGrouper instances for each instrument.
      for instrument, bar_ in value.items():
          barGrouper = self.__barGroupers.get(instrument)
          if barGrouper:
              barGrouper.addValue(bar_)
          else:
              barGrouper = resampled.BarGrouper(
                  self.getDateTime(), bar_, self.__frequency
              )
              self.__barGroupers[instrument] = barGrouper
  
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 BarsGrouper obj's underlying member method code with example usage: obj.addValue(value) without return types