def METHOD_NAME(self) -> None:
    if self.type is None:
        msg = "'type' is required for ParallelTask {}."
        raise ValidationException(
            message=msg.format(self.type),
            target=ErrorTarget.COMPONENT,
            no_personal_data_message=msg.format(""),
            error_category=ErrorCategory.USER_ERROR,
        )