<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _find_entry_call(self, frames):
 """attempts to auto-discover the correct frame"""


        back_i = 0
        pout_path = self._get_src_file(self.modname)
        for frame_i, frame in enumerate(frames):
            if frame[1] == pout_path:
                back_i = frame_i

        return Call(frames[back_i])