def rir_from_lossy(
      self,
      predictions,
      is_direct,
  ):
    """Prepares data when the input is both lossy and reversible."""
    return self.from_lossy(predictions, True, is_direct, *self.to_reversible())
Prepares data when the input is both lossy and reversible.
language/compir/dataset_parsers/dataset_parser.py