code: def __parseDateTime(self, dateTime):
      ret = None
      if self.__frequency == pyalgotrade.bar.Frequency.MINUTE:
          ret = parse_datetime(dateTime)
      elif self.__frequency == pyalgotrade.bar.Frequency.DAY:
          ret = datetime.datetime.strptime(dateTime, "%Y%m%d")
          # Time on CSV files is empty. If told to set one, do it.
          if self.__dailyBarTime is not None:
              ret = datetime.datetime.combine(ret, self.__dailyBarTime)
      else:
          assert False
  
      # According to NinjaTrader documentation the exported data will be in UTC.
      ret = pytz.utc.localize(ret)
  
      # Localize bars if a market session was set.
      if self.__timezone:
          ret = dt.localize(ret, self.__timezone)
      return ret
  
imports: import pyalgotrade.barfeed
  from pyalgotrade.barfeed import csvfeed
  from pyalgotrade import bar
  from pyalgotrade.utils import dt
  import pytz
  import datetime
label_desc: Use image node_id 2 for calling the RowParser obj's underlying member method code with example usage: obj.__parseDateTime(dateTime) and returns: ret