<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _validate_ids(self, resource_ids):
 """Validates a list of ids, raising a ResponseFailed error if invalid. Args: resource_id (list of str):
 The ids to validate Raises: ResponseFailed: The id was invalid, and a status of INVALID_ID will be sent with the response. """

        for resource_id in resource_ids:
            if self._id_regex.fullmatch(resource_id) is None:
                LOGGER.debug('Invalid resource id requested: %s', resource_id)
                raise _ResponseFailed(self._status.INVALID_ID)