pub fn preprocess_file<P: AsRef<Path>>(path: P) -> Result<Tensor<f32>>
Load and preprocess an image from a file path.
Returns an error if the image cannot be loaded.