code: def test_model_dict():
      record = TextClassificationRecord.parse_obj(
          {
              "id": 1,
              "inputs": {"text": "This is a text"},
              "annotation": {
                  "agent": "test",
                  "labels": [{"class": "A"}, {"class": "B"}],
              },
              "multi_label": True,
          }
      )
  
      assert record.dict(exclude_none=True) == {
          "annotation": {
              "agent": "test",
              "labels": [
                  {"class_label": "A", "score": 1.0},
                  {"class_label": "B", "score": 1.0},
              ],
          },
          "annotations": {
              "test": {
                  "labels": [
                      {"class_label": "A", "score": 1.0},
                      {"class_label": "B", "score": 1.0},
                  ]
              }
          },
          "id": 1,
          "inputs": {"text": "This is a text"},
          "metrics": {},
          "multi_label": True,
          "status": "Default",
      }
  
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 3 for calling a global function with example usage: test_model_dict() without return types