def __call__(self, function):
        @functools.wraps(function)
        def wrapper(*args, **kwargs):
            result = function(*args, **kwargs)
            try:
                data, status_code, headers = self.get_full_response(result)
                self.validate_response(data, status_code, headers)
            except NonConformingResponseBody as e:
                return problem(500, e.reason, e.message)
            except NonConformingResponseHeaders as e:
                return problem(500, e.reason, e.message)
            return result

        return wrapper
Private helper to workaround Python 2 pickle limitations to paralelize methods
dataset/ETHPy150Open zalando/connexion/connexion/decorators/response.py/ResponseValidator.__call__--crossover with--dataset/ETHPy150Open oddt/oddt/oddt/scoring/functions/RFScore.py/_parallel_helper