code: def transform_streams_for_comparison(outputs):
      
      new_outputs = []
      for output in outputs:
          if (output.output_type == 'stream'):
              # Transform output
              new_outputs.append({
                  'output_type': 'stream',
                  output.name: output.text,
              })
          else:
              new_outputs.append(output)
      return new_outputs
docs: Makes failure output for streams better by having key be the stream name