expand_labels function

Expand labels