class_docstr: ``TransformPredictions`` is a :class:`~pytorch_lightning.callbacks.base.Callback` which can be used to apply an
  :class:`~flash.core.data.io.output_transform.OutputTransform` and an :class:`~flash.core.data.io.output.Output` to
  model predictions.
  
  Args:
      output_transform: The :class:`~flash.core.data.io.output_transform.OutputTransform` to apply.
      output: The :class:`~flash.core.data.io.output.Output` to apply.
code: def __init__(self, output_transform: OutputTransform, output: Output):
      super().__init__()
  
      self.output_transform = output_transform
      self.output = output
  
file_path: lightning-flash/src/flash/core/data/io/transform_predictions.py
imports: import functools
  import pytorch_lightning
  from pytorch_lightning import Callback
  from flash.core.data.io.output import Output
  from flash.core.data.io.output_transform import OutputTransform
label_desc: Use image node_id 1 to create a new TransformPredictions object from inherited base classes: Callback with example: obj = TransformPredictions(output_transform, output)