def is_producttype(product, ptype):
    if ptype in product.get_subtypes():
        return True
    else:
        return False
Returns True if product is ptype
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/product/templatetags/satchmo_product.py/is_producttype