pub fn io_error_invalid_data<E: Into<Box<dyn Error + Send + Sync>>>(
    error: E
) -> Error