def METHOD_NAME(self, data_list):
    # Convert data from the cleaned list from the widget into a namedtuple
    if data_list:
        compressed = namedtuple('CompressedSessionPurposeAndType', 'purpose type')
        return compressed(*data_list)
    return None