class_docstr: 🤗 Constructor for the image classifier trainer
class_docstr_tok: ["\ud83e\udd17","Constructor","for","the","image","classifier","trainer"]
code: def predict(self, img_path: str, return_str=True):
      return self.predict_image(
          img=Image.open(img_path), return_str=return_str
      )
  
imports: import torch
  from PIL import Image
  from transformers import ViTFeatureExtractor, ViTForImageClassification, pipeline
label_desc: Use image node_id 3 for calling the VisionClassifierInference obj's underlying member method code with example usage: obj.predict(img_path, return_str) and returns: self