code: def writeBar(self, bar_):
      adjClose = bar_.getAdjClose()
      if adjClose is None:
          adjClose = ""
      dateTime = bar_.getDateTime().strftime(datetime_format)
      self.__writeLine(
          dateTime,
          bar_.getOpen(),
          bar_.getHigh(),
          bar_.getLow(),
          bar_.getClose(),
          bar_.getVolume(),
          adjClose,
      )
  
file_path: pyalgotrade/pyalgotrade/tools/resample.py
imports: import os
  from pyalgotrade import dispatcher
  from pyalgotrade.dataseries import resampled
label_desc: Use image node_id 3 for calling the CSVFileWriter obj's underlying member method code with example usage: obj.writeBar(bar_) without return types