docstr: Checks the score value integrity
  
  Parameters
  ----------
  prediction:
      The prediction annotation
  multi_label:
      If multi label
docstr_tok: ["Checks","the","score","value","integrity","Parameters","--","--","--","--","--","prediction",":","The","prediction","annotation","multi_label",":","If","multi","label"]
code: def _check_score_integrity(
      cls, prediction: TextClassificationAnnotation, multi_label: bool
  ):
      """
      Checks the score value integrity
  
      Parameters
      ----------
      prediction:
          The prediction annotation
      multi_label:
          If multi label
  
      """
      if prediction and not multi_label:
          assert sum([label.score for label in prediction.labels]) <= (
              1.0 + cls._SCORE_DEVIATION_ERROR
          ), f"Wrong score distributions: {prediction.labels}"
  
imports: from datetime import datetime
  from typing import Any, ClassVar, Dict, List, Optional, Union
  from argilla.server.commons.models import PredictionStatus, TaskStatus, TaskType
  from argilla.server.constants import DEFAULT_MAX_KEYWORD_LENGTH
  from argilla.server.helpers import flatten_dict
  from argilla.server.pydantic_v1 import BaseModel, Field, root_validator, validator
  from argilla.server.services.datasets import ServiceBaseDataset
  from argilla.server.services.search.model import ServiceBaseRecordsQuery, ServiceScoreRange
  from argilla.server.services.tasks.commons import ServiceBaseAnnotation, ServiceBaseRecord
label_desc: Use image node_id 3 for calling the ServiceTextClassificationRecord obj's underlying member method code with example usage: obj._check_score_integrity(cls, prediction, multi_label) without return types