Code for "Reflecting and Linking knowledge: Dynamic Label Structures for Prompt-based Continual Learning"