Need to optimize the code the same way as was done for hp.im.merge_labels.
Need to optimize the code the same way as was done for hp.im.merge_labels.