def get_type(bind):
types = bind.types + [bind.schema.get('<STR_LIT>')]<EOL>for type_name in ('<STR_LIT>', '<STR_LIT:date>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT:string>'):<EOL><INDENT>if type_name in types:<EOL><INDENT>return type_name<EOL><DEDENT><DEDENT>return '<STR_LIT:string>'<EOL>
Detect the ideal type for the data, either using the explicit type
    definition or the format (for date, date-time, not supported by JSON).