function assertResponse(response) {
    if (`_response` in response) {
        return response;
    }
    throw new TypeError(`Unexpected response object ${response}`);
}
A typesafe helper for ensuring that a given response object has
the original _response attached.
@param response - A response object from calling a client operation
@returns The same object, but with known _response property