code: def test_model_dict():
      text = "This is  a  great  space"
      tokens = ["This", "is", " ", "a", " ", "great", " ", "space"]
      record = TokenClassificationRecord(
          id="1",
          text=text,
          tokens=tokens,
          prediction=TokenClassificationAnnotation(
              agent="test",
              entities=[EntitySpan(start=9, end=24, label="test")],
          ),
      )
  
      assert record.dict(exclude_none=True) == {
          "id": "1",
          "metrics": {},
          "prediction": {
              "agent": "test",
              "entities": [
                  {"end": 24, "label": "test", "score": 1.0, "start": 9}
              ],
          },
          "predictions": {
              "test": {
                  "entities": [
                      {
                          "end": 24,
                          "label": "test",
                          "score": 1.0,
                          "start": 9,
                      }
                  ],
              }
          },
          "status": "Default",
          "text": "This is  a  great  space",
          "tokens": [
              "This",
              "is",
              " ",
              "a",
              " ",
              "great",
              " ",
              "space",
          ],
      }
  
imports: import pytest
  from argilla.server.apis.v0.models.token_classification import TokenClassificationAnnotation, TokenClassificationQuery, TokenClassificationRecord
  from argilla.server.commons.models import PredictionStatus
  from argilla.server.daos.backend.search.query_builder import EsQueryBuilder
  from argilla.server.services.tasks.token_classification.model import EntitySpan, ServiceTokenClassificationRecord
  from tests.pydantic_v1 import ValidationError
label_desc: Use image node_id 4 for calling a global function with example usage: test_model_dict() without return types