def check_param(trans, param, incoming_value, param_values):
 value = incoming_value
 error = None
 try:
  if trans.workflow_building_mode:
   if isinstance(value, RuntimeValue):
    return [{'__class__': 'RuntimeValue'}, None]
   if isinstance(value, dict):
    if (value.get('__class__') == 'RuntimeValue'):
     return [value, None]
  value = param.from_json(value, trans, param_values)
  param.validate(value, trans)
 except ValueError as e:
  error = str(e)
 return (value, error)

def check_param ( trans , param , incoming_value , param_values ) : value = incoming_value error = None try : if trans . workflow_building_mode : if isinstance ( value , RuntimeValue ) : return [ { '__class__' : 'RuntimeValue' } , None ] if isinstance ( value , dict ) : if ( value . get ( '__class__' ) == 'RuntimeValue' ) : return [ value , None ] value = param . from_json ( value , trans , param_values ) param . validate ( value , trans ) except ValueError as e : error = str ( e ) return ( value , error )
if there is a number modulo a such that x and y are both integers .