def _validate_response()

in build_artifacts/v2/v2.5/v2.5.0/dirs/etc/sagemaker-ui/workflows/workflow_client.py [0:0]


def _validate_response(function_name: str, response: requests.Response):
    if response.status_code == 200:
        return response
    else:
        raise RuntimeError(
            f"{function_name} returned {response.status_code}: {str(response.content)}"
        )