docs: def get_path_list(self, type_str=None):
          """Get list of the labels of the nodes leading up to this node from the root.
  
          Args:
              type_str:
                  SUBJECT_NODE_TAG, TYPE_NODE_TAG or None. If set, only include
                  information from nodes of that type.
  
          Returns:
              list of str: The labels of the nodes leading up to this node from the root.
  
          """
          return list(
              reversed(
                  [v.label_str for v in self.parent_gen if type_str in (None, v.type_str)]
              )
          )