def check_param_val(param):
 val = param.value
 if (val is None):
  raise ValueError('Problem has missing parameter value.')
 else:
  return val

def check_param_val ( param ) : val = param . value if ( val is None ) : raise ValueError ( 'Problem has missing parameter value.' ) else : return val
wrapper on accessing a parameter .