code: def test_model_with_predictions():
      record = TokenClassificationRecord.parse_obj(
          {
              "id": 1,
              "metrics": {},
              "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",
              ],
          }
      )
      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 5 for calling a global function with example usage: test_model_with_predictions() without return types