def METHOD_NAME(sagemaker_session, endpoint_name):
    response = sagemaker_session.sagemaker_runtime_client.invoke_endpoint(
        EndpointName=endpoint_name,
        EnableExplanations="`false`",
        Body=TEST_CSV_DATA,
        ContentType="text/csv",
        Accept="text/csv",
    )
    assert response
    response_body_stream = response["Body"]
    try:
        response_body_json = json.load(codecs.getreader("utf-8")(response_body_stream))
        assert response_body_json
        # no records are explained when EnableExplanations="`false`"
        assert response_body_json.get("explanations") == {}
        assert response_body_json.get("predictions")
    finally:
        response_body_stream.close()