code: def labels(self):
          
          labelings = OrderedDict()
          for tree in self:
              for label, line in tree.to_labeled_lines():
                  labelings[line] = label
          return labelings
docs: Construct a dictionary of string -> labels
  
          Returns:
          --------
              OrderedDict<str, int> : string label pairs.