code: def parse_datetime(dateTime):
      try:
          ret = datetime.datetime.strptime(
              dateTime, "%Y-%m-%d %H:%M:%S"
          )
      except ValueError:
          ret = datetime.datetime.strptime(
              dateTime, "%Y-%m-%d %H:%M:%S.%f"
          )
      return dt.as_utc(ret)
  
imports: import time
  import datetime
  import hmac
  import hashlib
  import requests
  import threading
  from pyalgotrade.utils import dt
  from pyalgotrade.bitstamp import common
  import logging
label_desc: Use image node_id 1 for calling a global function with example usage: parse_datetime(dateTime) and returns: dt