def blur_augment(is_training=True, **kwargs):
  """Applies random blur augmentation."""
  if is_training:
    prob = kwargs['prob'] if 'prob' in kwargs else 0.5
    return [('blur', {'prob': prob})]
  return []