code: def datetimeparse(isotimestamp):
      ver = int(platform.python_version_tuple()[0]) * 10 + int(
          platform.python_version_tuple()[1]
      )
      if ver >= 37:
          return datetime.fromisoformat(isotimestamp)
      else:
          return datetime.strptime(isotimestamp, "%Y-%m-%dT%H:%M:%S.%f")
  
imports: import hashlib
  import json
  import sys
  import platform
  from collections import defaultdict
  from datetime import datetime, timedelta
label_desc: Use image node_id 6 for calling a global function with example usage: datetimeparse(isotimestamp) and returns: datetime, datetime