def search(self, doc):
        for path in self.paths:
            try:
                return reduce(lambda obj, attr: obj[attr], path, doc)
            except __HOLE__:
                pass
dataset/ETHPy150Open dimagi/commcare-hq/corehq/ex-submodules/couchexport/deid.py/JSONPath.search