code: def _get_corrupted_example(self, x):
      
      corruption_type = self.builder_config.corruption_type
      severity = self.builder_config.severity
  
      return {
          'gaussian_noise': corruptions.gaussian_noise,
          'shot_noise': corruptions.shot_noise,
          'impulse_noise': corruptions.impulse_noise,
          'defocus_blur': corruptions.defocus_blur,
          'frosted_glass_blur': corruptions.frosted_glass_blur,
          'zoom_blur': corruptions.zoom_blur,
          'fog': corruptions.fog,
          'brightness': corruptions.brightness,
          'contrast': corruptions.contrast,
          'elastic': corruptions.elastic,
          'pixelate': corruptions.pixelate,
          'jpeg_compression': corruptions.jpeg_compression,
      }[corruption_type](x, severity)
docs: Return corrupted images.
  
      Args:
        x: numpy array, uncorrupted image.
  
      Returns:
        numpy array, corrupted images.