code: def test_using_predictions_dict():
      record = ServiceTextClassificationRecord(
          inputs={"text": "this is a text"},
          predictions={
              "carl": TextClassificationAnnotation(
                  agent="wat at",
                  labels=[ClassPrediction(class_label="YES")],
              ),
              "BOB": TextClassificationAnnotation(
                  agent="wot wot",
                  labels=[ClassPrediction(class_label="NO")],
              ),
          },
      )
  
      assert record.prediction.dict() == {
          "agent": "carl",
          "labels": [{"class_label": "YES", "score": 1.0}],
      }
      assert record.predictions == {
          "BOB": TextClassificationAnnotation(
              labels=[ClassPrediction(class_label="NO")]
          ),
          "carl": TextClassificationAnnotation(
              labels=[ClassPrediction(class_label="YES")]
          ),
      }
  
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 18 for calling a global function with example usage: test_using_predictions_dict() without return types