code: def parse_date(date):
      # Sample: 2005-12-30
      # This custom parsing works faster than:
      # datetime.datetime.strptime(date, "%Y-%m-%d")
      year = int(date[0:4])
      month = int(date[5:7])
      day = int(date[8:10])
      ret = datetime.datetime(year, month, day)
      return ret
  
file_path: pyalgotrade/pyalgotrade/barfeed/yahoofeed.py
imports: from pyalgotrade.barfeed import csvfeed
  from pyalgotrade.barfeed import common
  from pyalgotrade.utils import dt
  from pyalgotrade import bar
  import datetime
label_desc: Use image node_id 1 for calling a global function with example usage: parse_date(date) and returns: ret