code: def addBarsFromSequence(self, instrument, bars):
      if self.__started:
          raise Exception(
              "Can't add more bars once you started consuming bars"
          )
  
      self.__bars.setdefault(instrument, [])
      self.__nextPos.setdefault(instrument, 0)
  
      # Add and sort the bars
      self.__bars[instrument].extend(bars)
      self.__bars[instrument].sort(key=lambda b: b.getDateTime())
  
      self.registerInstrument(instrument)
  
file_path: pyalgotrade/pyalgotrade/barfeed/membf.py
imports: import six
  from pyalgotrade import barfeed
  from pyalgotrade import bar
  from pyalgotrade import utils
label_desc: Use image node_id 7 for calling the BarFeed obj's underlying member method code with example usage: obj.addBarsFromSequence(instrument, bars) without return types