You could iterate through the frames and use ```inspect.getframeinfo(frame).function.startswith('test')```