code: def similarity(self, other: Trigram) -> Tuple[float, L]:
          
  
          return max(
              ((t % other, l) for t, l in self.trigrams),
              key=lambda x: x[0],
          )
docs: Returns the best matching score and the associated label.