def METHOD_NAME(self) -> None:
    try:
        self.client.ping()
        self.client.connection_pool.disconnect()  # type: ignore
    except Exception as e:
        raise InvalidConfiguration(str(e))