def side_effect(_def, _dict=None, **kwargs): test_obj = IonObject(_def, _dict, **kwargs) test_obj._validate() return DEFAULT