code: def add_salt_and_pepper_noise(data, p=0.05):
      if p <= 0:
          return data
  
      original_dtype = data.dtype
  
      random_image_data = np.random.choice(
          [0, 1], p=[p, 1 - p], size=data.shape
      )
  
      return (data.astype(np.float32) * random_image_data).astype(
          original_dtype
      )
  
imports: import unittest
  import numpy
  from monai.transforms import LoadImage
  from monai.utils import set_determinism
  from parameterized import parameterized
  from monailabel.scribbles.infer import HistogramBasedGraphCut
  from monailabel.scribbles.transforms import AddBackgroundScribblesFromROId, ApplyGraphCutOptimisationd, InteractiveSegmentationTransform, MakeISegUnaryd, MakeLikelihoodFromScribblesHistogramd, SoftenProbSoftmax
  from monailabel.transform.writer import Writer
label_desc: Use image node_id 2 for calling a global function with example usage: add_salt_and_pepper_noise(data, p) and returns: unknown, data