code: def parse_datetime(dateTime):
      # Sample: 20081231 230600
      # This custom parsing works faster than:
      # datetime.datetime.strptime(dateTime, "%Y%m%d %H%M%S")
      year = int(dateTime[0:4])
      month = int(dateTime[4:6])
      day = int(dateTime[6:8])
      hour = int(dateTime[9:11])
      minute = int(dateTime[11:13])
      sec = int(dateTime[13:15])
      return datetime.datetime(year, month, day, hour, minute, sec)
  
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 1 for calling a global function with example usage: parse_datetime(dateTime) and returns: datetime