class_docstr: A optimzied OxfordIIITPet using libjpeg_turbo to load jpg images.
class_docstr_tok: ["A","optimzied","OxfordIIITPet","using","libjpeg_turbo","to","load","jpg","images","."]
code: def _decode_img_libjpeg_turbo(self, img_str: str):
      if self.jpeg is None:
          self.jpeg = TurboJPEG(lib_path=local_libturbo_path)
      bgr_array = self.jpeg.decode(img_str)
      return bgr_array
  
file_path: BigDL/python/nano/src/bigdl/nano/pytorch/vision/datasets/oxfordpet_datasets.py
imports: from typing import Union, Callable, Optional
  from turbojpeg import TurboJPEG, TJPF_GRAY
  import torchvision
  import cv2
  import os
  import numpy
  import torch
  from logging import warning
  from os.path import split, join, realpath
  from PIL import Image
  from typing import Any
label_desc: Use image node_id 3 for calling the OxfordIIITPet obj's underlying member method code with example usage: obj._decode_img_libjpeg_turbo(img_str) and returns: bgr_array