def instances(doc):
    return doc["doc_type"] == "XFormInstance"
Only return XFormInstances, not duplicates or errors
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/couchforms/filters.py/instances