def METHOD_NAME(self):
    missing_attributes = [a for a in self._required_attributes() if a not in self.raw]
    if missing_attributes:
        if hasattr(self, 'name'):
            if callable(self.name):
                name = self.name()
            else:
                name = str(self.name)
        else:
            name = '<unknown>'
        raise ModelValidationError(
            f'{type(self).__name__}:{name}: The following required attributes are '
            f'absent: {", ".join(missing_attributes)}.'
        )