def instance_test_and_set(context, instance_uuid, attr, ok_states, new_state):
 return IMPL.instance_test_and_set(context, instance_uuid, attr, ok_states, new_state)

def instance_test_and_set ( context , instance_uuid , attr , ok_states , new_state ) : return IMPL . instance_test_and_set ( context , instance_uuid , attr , ok_states , new_state )
atomically check if an instance is in a valid state .