code: def handle(self,
                 t_input: inference.TranslatorInput,
                 t_output: inference.TranslatorOutput,
                 t_walltime: float = 0.):
          
          alignments = " ".join(
              ["%d-%d" % (s, t) for s, t in get_alignments(t_output.attention_matrix, threshold=self.threshold)])
          self.stream.write("%s\t%s\n" % (t_output.translation, alignments))
          self.stream.flush()
docs: :param t_input: Translator input.
          :param t_output: Translator output.
          :param t_walltime: Total wall-clock time for translation.