def find_user_fn(self, stack):
        for frame in reversed(stack):
            # frame[0] is the file path to the module
            if 'sqlalchemy' not in frame[0]:
                return frame
rough heuristic to try to figure out what user-defined func
dataset/ETHPy150Open inconshreveable/sqltap/sqltap/sqltap.py/QueryGroup.find_user_fn