def finditer(self, py_func):
        """
        Yields frame that matches the function object starting from the top
        of stack.
        """
        for frame in self:
            if frame.func_id.func is py_func:
                yield frame

        Yields frame that matches the function object starting from the top
        of stack.
        
numba/core/typing/context.py