<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def current_frame(raw=False):
        '''
        Gives the current execution frame.

        :returns:
            The current execution frame that is actually executing this.
        '''

        # `import sys` is important here, because the `sys` module is special
        # and we will end up with the class frame instead of the `current` one.

        if NATIVE:
            import sys

            frame = sys._getframe()
        else:
            frame = _getframe()

        frame = frame.f_back

        if not raw:
            frame = Frame(frame)

        return frame