code: def __init__(self, groupDateTime, bars, frequency):
      resamplebase.Grouper.__init__(self, groupDateTime)
      self.__barGroupers = {}
      self.__frequency = frequency
  
      # Initialize BarGrouper instances for each instrument.
      for instrument, bar_ in bars.items():
          barGrouper = resampled.BarGrouper(
              groupDateTime, bar_, 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 1 to create a new BarsGrouper object from inherited base classes: resamplebase with example: obj = BarsGrouper(groupDateTime, bars, frequency)