def create_or_update_prediction(
        self,
        sample_id: str,
        prediction_singletons: Sequence[PredictionSingleton],
        prediction_version_id: int = -1,
    ) -> None:
        """Creates or updates predictions for one specific sample.

        Args:
            sample_id
                The ID of the sample.

            prediction_version_id:
                A numerical ID (e.g., timestamp) to distinguish different predictions of different model versions.
                Use the same id if you don't require versioning or if you wish to overwrite the previous schema.
                This ID must match the ID of a prediction task schema.

            prediction_singletons:
                Predictions to be uploaded for the designated sample.

        :meta private:  # Skip docstring generation
        """
        self._predictions_api.create_or_update_prediction_by_sample_id(
            prediction_singleton=prediction_singletons,
            dataset_id=self.dataset_id,
            sample_id=sample_id,
            prediction_uuid_timestamp=prediction_version_id,
        )
Creates or updates predictions for one specific sample.

        Args:
            sample_id
                The ID of the sample.

            prediction_version_id:
                A numerical ID (e.g., timestamp) to distinguish different predictions of different model versions.
                Use the same id if you don't require versioning or if you wish to overwrite the previous schema.
                This ID must match the ID of a prediction task schema.

            prediction_singletons:
                Predictions to be uploaded for the designated sample.

        :meta private:  # Skip docstring generation
        
lightly/api/api_workflow_predictions.py