def _not_null(value, field):
 return ((value is not None) or (field.mode != 'NULLABLE'))

def _not_null ( value , field ) : return ( ( value is not None ) or ( field . mode != 'NULLABLE' ) )
check whether value should be coerced to field type .