add method `get_labels`