code: def test_empty_labels_for_no_multilabel():
      with pytest.raises(
          ValidationError,
          match="Single label record must include only one annotation label",
      ):
          ServiceTextClassificationRecord(
              inputs={"text": "The input text"},
              annotation=TextClassificationAnnotation(
                  agent="ann.", labels=[]
              ),
          )
  
      record = ServiceTextClassificationRecord(
          inputs={"text": "The input text"},
          prediction=TextClassificationAnnotation(
              agent="ann.", labels=[]
          ),
          annotation=TextClassificationAnnotation(
              agent="ann.", labels=[ClassPrediction(class_label="B")]
          ),
      )
      assert record.predicted == PredictionStatus.KO
  
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 16 for calling a global function with example usage: test_empty_labels_for_no_multilabel() without return types