code: def test_score_ranges():
      with pytest.raises(
          ValidationError, match="less than or equal to 1.0"
      ):
          ClassPrediction(class_label="BB", score=100)
  
      with pytest.raises(
          ValidationError, match="greater than or equal to 0.0"
      ):
          ClassPrediction(class_label="BB", score=-100)
  
imports: import pytest
  from argilla.server.apis.v0.models.text_classification import TextClassificationAnnotation, TextClassificationQuery, TextClassificationRecord
  from argilla.server.commons.models import PredictionStatus, TaskStatus
  from argilla.server.daos.backend.search.query_builder import EsQueryBuilder
  from argilla.server.services.tasks.text_classification.model import ClassPrediction, ServiceTextClassificationRecord
  from tests.pydantic_v1 import ValidationError
label_desc: Use image node_id 10 for calling a global function with example usage: test_score_ranges() without return types