def _check_actions(self, actions, attribute_updates):
    if (actions is not None):
        if (attribute_updates is not None):
            raise ValueError('Legacy attribute updates cannot be used with update actions')
    elif (attribute_updates is not None):
        warnings.warn('Legacy attribute updates are deprecated in favor of update actions')
def _check_actions(self, actions, attribute_updates):
    if (actions is not None):
        if (attribute_updates is not None):
            raise ValueError('Legacy attribute updates cannot be used with update actions')
    elif (attribute_updates is not None):
        warnings.warn('Legacy attribute updates are deprecated in favor of update actions')