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