def METHOD_NAME(self, logger: AirbyteLogger, config: Mapping[str, Any]) -> AirbyteConnectionStatus:
    """
    Tests if the input configuration can be used to successfully connect to the destination with the needed permissions
        e.g: if a provided API token or password can be used to connect and write to the destination.
    :param logger: Logging object to display debug/info/error to the logs
        (logs will not be accessible via airbyte UI if they are not passed to this logger)
    :param config: Json object containing the configuration of this destination, content of this json is as specified in
    the properties of the spec.json file
    :return: AirbyteConnectionStatus indicating a Success or Failure
    """
    try:
        # Verify write access by attempting to write then delete
        stream = str(uuid.uuid4())
        # Can't override destination_path because we cannot assume we have write
        # access anywhere else
        with SftpClient(**config) as writer:
            writer.write(stream, {"value": "_airbyte_connection_check"})
            writer.delete(stream)
        return AirbyteConnectionStatus(status=Status.SUCCEEDED)
    except Exception as e:
        return AirbyteConnectionStatus(
            status=Status.FAILED,
            message=f"An exception occurred: {e}. \nStacktrace: \n{traceback.format_exc()}",
        )