code: def test_manually_adding_predictions(self):
      # Load your dataset
      dataset = (
          foz.load_zoo_dataset("quickstart", max_samples=5)
          .select_fields("ground_truth")
          .clone()
      )
      labels = dataset.distinct("ground_truth.detections.label")
  
      # Load your Flash model
      model = ImageClassifier(labels=labels)
  
      # Create prediction datamodule
      datamodule = ImageClassificationData.from_fiftyone(
          predict_dataset=dataset,
          batch_size=1,
      )
  
      # Output FiftyOne format
      output = FiftyOneLabelsOutput(
          return_filepath=False, labels=labels
      )
      # Predict with trainer
      predictions = Trainer().predict(
          model, datamodule=datamodule, output=output
      )
  
      predictions = list(
          chain.from_iterable(predictions)
      )  # flatten batches
  
      # Predictions is a list of Label objects since ``return_filepath=False``
      # Order corresponds to order of the ``predict_dataset``
  
      # Add predictions to dataset
      dataset.set_values("flash_predictions", predictions)
  
imports: import numpy
  import unittest
  from itertools import chain
  from flash.core.data.utils import download_data
  from flash.image.detection.output import FiftyOneDetectionLabelsOutput
  from flash.core.classification import FiftyOneLabelsOutput
  from flash.image.segmentation.output import FiftyOneSegmentationLabelsOutput
  from flash.image import ImageClassificationData, ImageClassifier, ImageEmbedder
  from flash.image import ObjectDetectionData, ObjectDetector
  from flash.image import SemanticSegmentation, SemanticSegmentationData
  from flash import Trainer
  from flash.video import VideoClassificationData, VideoClassifier
  import fiftyone
  import fiftyone.brain
  import fiftyone.utils.random
  import fiftyone.zoo
label_desc: Use image node_id 6 for calling the LightningFlashTests obj's underlying member method code with example usage: obj.test_manually_adding_predictions() without return types