def call_failsafe_member(self, data: Dict[str, Any], member: Member) -> _FailsafeResponse:
        """Call ``POST /failsafe`` REST API request on provided member.

        :param data: data to be send in the POST request.

        :returns: a :class:`_FailsafeResponse` object.
        """
        endpoint = 'failsafe'
        url = member.get_endpoint_url(endpoint)
        try:
            response = self.patroni.request(member, 'post', endpoint, data, timeout=2, retries=1)
            response_data = response.data.decode('utf-8')
            logger.info('Got response from %s %s: %s', member.name, url, response_data)
            accepted = response.status == 200 and response_data == 'Accepted'
            # member may return its current received/replayed LSN in the "lsn" header.
            return _FailsafeResponse(member.name, accepted, parse_int(response.headers.get('lsn')))
        except Exception as e:
            logger.warning("Request failed to %s: POST %s (%s)", member.name, url, e)
        return _FailsafeResponse(member.name, False, None)
Call ``POST /failsafe`` REST API request on provided member.

        :param data: data to be send in the POST request.

        :returns: a :class:`_FailsafeResponse` object.
        
patroni/ha.py