code: def random_noise(
      x: Tensor, variance: Tensor, *args, **kwargs
  ) -> Tensor:
      """Apply random noise sampled."""
      noise = torch.randn_like(x) * variance
      x = x + noise
      return x
  
imports: from typing import Any, Optional
  import torch
  from torch import Tensor, nn
label_desc: Use image node_id 1 for calling a global function with example usage: random_noise(x, variance) and returns: x