code: def label_path(label, label_path_sep):
      label = label.strip(label_path_sep)
      label_path = label.split(label_path_sep)
      label_set = []
      for i in range(len(label_path)):
          label_set.append(label_path_sep.join(label_path[: i + 1]))
      return label_set
  
file_path: OpenPrompt/openprompt/utils/metrics.py
imports: from sklearn.metrics import f1_score, precision_score, recall_score, accuracy_score
  from typing import *
  from openprompt.utils.logging import logger
label_desc: Use image node_id 2 for calling a global function with example usage: label_path(label, label_path_sep) and returns: label_set