code: def date_from_json(value, obj):
      if value:
          return dt.datetime.strptime(
              value.rstrip("Z"), "%Y-%m-%dT%H:%M:%S.%f"
          )
      else:
          return value
  
imports: from traitlets import TraitError, TraitType
  import numpy
  import pandas
  import warnings
  import datetime
  import six
label_desc: Use image node_id 2 for calling a global function with example usage: date_from_json(value, obj) and returns: dt, value