class_docstr: Random JPEG noise. 
class_docstr_tok: ["Random","JPEG","noise","."]
code: def _augment(self, img, q):
      enc = cv2.imencode(".jpg", img, [cv2.IMWRITE_JPEG_QUALITY, q])[1]
      return cv2.imdecode(enc, 1).astype(img.dtype)
  
file_path: tensorpack/tensorpack/dataflow/imgaug/noise.py
imports: import numpy
  import cv2
  from .base import PhotometricAugmentor
label_desc: Use image node_id 3 for calling the JpegNoise obj's underlying member method code with example usage: obj._augment(img, q) and returns: cv2