code: def build_bars_from_closing_prices(closingPrices):
      ret = []
  
      nextDateTime = datetime.datetime.now()
      for closePrice in closingPrices:
          bar_ = bar.BasicBar(
              nextDateTime,
              closePrice,
              closePrice,
              closePrice,
              closePrice,
              closePrice,
              closePrice,
              bar.Frequency.DAY,
          )
          ret.append(bar_)
          nextDateTime = nextDateTime + datetime.timedelta(days=1)
      return ret
  
imports: import datetime
  from .None import common
  from .None import strategy_test
  from pyalgotrade.barfeed import yahoofeed
  from pyalgotrade.barfeed import membf
  from pyalgotrade.stratanalyzer import drawdown
  from pyalgotrade import broker
  from pyalgotrade import bar
label_desc: Use image node_id 1 for calling a global function with example usage: build_bars_from_closing_prices(closingPrices) and returns: ret