def ensure_product(product):
    if product not in [s[0] for s in Product.CHOICES]:
        raise ValueError("Unsupported Product")
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/accounting/user_text.py/ensure_product/original