docstr: 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
docstr_tok: ["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","do","n'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"]
code: 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,
      )
  
imports: from typing import Sequence
  from lightly.openapi_generated.swagger_client.models import PredictionSingleton, PredictionTaskSchema
label_desc: Use image node_id 2 for calling the _PredictionsMixin obj's underlying member method code with example usage: obj.create_or_update_prediction(sample_id, prediction_singletons, prediction_version_id) without return types