code: def speckle_noise(x, severity=1):
      """Apply speckle noise to images.
  
      Args:
        x: numpy array, uncorrupted image, assumed to have uint8 pixel in [0,255].
        severity: integer, severity of corruption.
  
      Returns:
        numpy array, image with uint8 pixels in [0,255]. Applied speckle noise.
      """
      c = [0.15, 0.2, 0.35, 0.45, 0.6][severity - 1]
  
      x = np.array(x) / 255.0
      x = (
          np.clip(x + x * np.random.normal(size=x.shape, scale=c), 0, 1)
          * 255
      )
      return around_and_astype(x)
  
imports: import io
  import subprocess
  import tempfile
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 24 for calling a global function with example usage: speckle_noise(x, severity) and returns: around_and_astype