code: def get_path_for_termid(self,termid):
          
          terminal_id = self.terminal_for_term.get(termid)
          paths = self.paths_for_terminal[terminal_id]
          labels = [self.label_for_nonter[nonter] for nonter in paths[0]]
          return labels
docs: This function returns the path (in terms of phrase types) from one term the root
          @type termid: string
          @param termid: one term id
          @rtype: list
          @return: the path, list of phrase types