fn get_input_stream_for_loading(
    stream: &InputStream,
    cancellable: Option<&Cancellable>
) -> Result<InputStream, LoadingError>