code: def add_JPEG_noise(img):
      quality_factor = random.randint(80, 95)
      img = cv2.cvtColor(util.single2uint(img), cv2.COLOR_RGB2BGR)
      result, encimg = cv2.imencode(
          ".jpg", img, [int(cv2.IMWRITE_JPEG_QUALITY), quality_factor]
      )
      img = cv2.imdecode(encimg, 1)
      img = cv2.cvtColor(util.uint2single(img), cv2.COLOR_BGR2RGB)
      return img
  
imports: import numpy
  import cv2
  import torch
  from functools import partial
  import random
  from scipy import ndimage
  import scipy
  import scipy.stats
  from scipy.interpolate import interp2d
  from scipy.linalg import orth
  import albumentations
  import ldm.modules.image_degradation.utils_image
label_desc: Use image node_id 21 for calling a global function with example usage: add_JPEG_noise(img) and returns: img