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

def _extract_return(self, data):
        '''
        Extracts return data from the results.

        :param data:
        :return:
        '''
        if isinstance(data, dict):
            data = data.get('return', data)

        return data