code: def is_date(instance):
      if not isinstance(instance, str_types):
          return True
      return datetime.datetime.strptime(instance, "%Y-%m-%d")
  
file_path: catboost/contrib/python/jsonschema/py2/jsonschema/_format.py
imports: import datetime
  import re
  import socket
  import struct
  from jsonschema.compat import str_types
  from jsonschema.exceptions import FormatError
label_desc: Use image node_id 6 for calling a global function with example usage: is_date(instance) and returns: datetime, True