

def __call__(self, user, version, last_sync=None, app=None):

    def get_products():
        return sorted(Product.by_domain(user.domain, include_archived=True), key=(lambda product: product.code))
    return _simple_fixture_generator(user, self.id, 'product', PRODUCT_FIELDS, get_products, last_sync)

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/products/fixtures.py ProductFixturesProvider.__call__/original