code: def convert_to_datetime(time):
      time_fmt = "%Y-%m-%dT%H:%M:%S"
      if isinstance(time, str):
          return datetime.datetime.strptime(time, time_fmt)
  
imports: from __future__ import annotations
  import datetime
  from multiprocessing.sharedctypes import Value
  import numpy
  import pandas
  from stockstats import StockDataFrame
  from finrl import config
  from finrl.meta.preprocessor.yahoodownloader import YahooDownloader
label_desc: Use image node_id 3 for calling a global function with example usage: convert_to_datetime(time) and returns: datetime