class_docstr: Salt and pepper noise.
  Randomly set some elements in image to 0 or 255, regardless of its channels.
class_docstr_tok: ["Salt","and","pepper","noise",".","Randomly","set","some","elements","in","image","to","0","or","255",",","regardless","of","its","channels","."]
code: def _augment(self, img, param):
      img[param > (1 - self.white_prob)] = 255
      img[param < self.black_prob] = 0
      return img
  
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 SaltPepperNoise obj's underlying member method code with example usage: obj._augment(img, param) and returns: img