Transform a sample to reflect case labels.
sample (dict) – The sample to transform.
The transformed sample.