code: def _randomly_negate(magnitude: float) -> float:
      """
      Negate input value with 50% chance.
  
      Args:
          magnitude (float): Input value.
      """
      return magnitude if torch.rand(1).item() > 0.5 else -magnitude
  
imports: from typing import Any, Callable, Dict, List, Optional, Tuple, Union
  import torch
  import torchvision
  from torch import Tensor
  from torchvision.transforms.functional import InterpolationMode
label_desc: Use image node_id 16 for calling a global function with example usage: _randomly_negate(magnitude) and returns: unknown