@classmethod
    def is_legal_combination(cls, type, value):
        return type in cls.CHOICE_MAP and cls.CHOICE_MAP[type] in value


# Ported from: https://github.com/dimagi/logistics/blob/tz-master/logistics_project/apps/tanzania/models.py#L124
dataset/ETHPy150Open dimagi/commcare-hq/custom/ilsgateway/models.py/SupplyPointStatusTypes.is_legal_combination/swapped operands of `in`