def _deserialize_response(http_response_as_bytes, http_request, http_response_type=HttpClientTransportResponse):
    """Deserialize a HTTPResponse from a string.

    :param bytes http_response_as_bytes: The HTTP response as bytes.
    :param HttpRequest http_request: The request to store in the response.
    :param type http_response_type: The type of response to return
    :rtype: HttpResponse
    :return: The HTTP response from those low-level bytes.
    """
    local_socket = BytesIOSocket(http_response_as_bytes)
    response = _HTTPResponse(local_socket, method=http_request.method)
    response.begin()
    return http_response_type(http_request, response)
Deserialize a HTTPResponse from a string.

    :param bytes http_response_as_bytes: The HTTP response as bytes.
    :param HttpRequest http_request: The request to store in the response.
    :param type http_response_type: The type of response to return
    :rtype: HttpResponse
    :return: The HTTP response from those low-level bytes.
    
Solutions/CyberArkAudit/Data Connectors/.python_packages/lib/site-packages/azure/core/pipeline/transport/_base.py