code: def speckle_noise(x: Tensor, severity: int = 1) -> Tensor:
      """Applies speckle noise"""
      imagenet_c = [0.15, 0.2, 0.35, 0.45, 0.6]
      cifar_c = [0.06, 0.1, 0.12, 0.16, 0.2]
      c = interpolate_severity(x, cifar_c, imagenet_c, severity)
      return (x + x * c * torch.randn_like(x)).clamp(min=0.0, max=1.0)
  
file_path: TorchDrift/torchdrift/data/functional/corruption_functions.py
imports: from torch import Tensor
  import torch
  import math
  import torchdrift.utils
label_desc: Use image node_id 6 for calling a global function with example usage: speckle_noise(x, severity) and returns: unknown