code: def contrast(probability: float, magnitude: int) -> OperationBase:
      magnitudes = linspace(0.1, 1.9, 11)
      return Contrast(
          None,
          probability,
          magnitude_range=(
              magnitudes[magnitude].item(),
              magnitudes[magnitude + 1].item(),
          ),
      )
  
file_path: kornia/kornia/augmentation/auto/autoaugment/ops.py
imports: from kornia.augmentation.auto.operations import AutoContrast, Brightness, Contrast, Equalize, Invert, OperationBase, Posterize, Rotate, Saturate, Sharpness, ShearX, ShearY, Solarize, TranslateX, TranslateY
  from kornia.core import linspace
label_desc: Use image node_id 11 for calling a global function with example usage: contrast(probability, magnitude) and returns: Contrast