def serialize(self, data):
        raise NotImplementedError
function to return the size of the widget
dataset/ETHPy150Open gmr/tinman/tinman/serializers.py/Serializer.serialize--crossover with--dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/S3QuestionTypeAbstractWidget.getMatrixSize