def check_conversion(condition, message):
 if (not condition):
  raise InvalidConversionError(message)

def check_conversion ( condition , message ) : if ( not condition ) : raise InvalidConversionError ( message )
asserts a conversion condition and raises an error if its not met .