def _sleep_for_retry(
        self,
        response: PipelineResponse[HTTPRequestType, HTTPResponseType],
        transport: HttpTransport[HTTPRequestType, HTTPResponseType],
    ) -> bool:
        """Sleep based on the Retry-After response header value.

        :param response: The PipelineResponse object.
        :type response: ~azure.core.pipeline.PipelineResponse
        :param transport: The HTTP transport type.
        :type transport: ~azure.core.pipeline.transport.HttpTransport
        :return: Whether a sleep was done or not
        :rtype: bool
        """
        retry_after = self.get_retry_after(response)
        if retry_after:
            transport.sleep(retry_after)
            return True
        return False
Sleep based on the Retry-After response header value.

        :param response: The PipelineResponse object.
        :type response: ~azure.core.pipeline.PipelineResponse
        :param transport: The HTTP transport type.
        :type transport: ~azure.core.pipeline.transport.HttpTransport
        :return: Whether a sleep was done or not
        :rtype: bool
        
Solutions/CyberArkAudit/Data Connectors/.python_packages/lib/site-packages/azure/core/pipeline/policies/_retry.py