code: def test_predicted_ok_ko_computation():
      text = "A text with some empty spaces that could bring not cleanly annotated spans"
      record = ServiceTokenClassificationRecord(
          text=text,
          tokens=text.split(),
          prediction=TokenClassificationAnnotation(
              agent="pred.test",
              entities=[
                  EntitySpan(
                      start=0,
                      end=6,
                      label="VERB",
                  ),
                  EntitySpan(
                      start=47,
                      end=68,
                      label="VERB",
                      score=0.5,
                  ),
              ],
          ),
          annotation=TokenClassificationAnnotation(
              agent="test",
              entities=[
                  EntitySpan(
                      start=0,
                      end=6,
                      label="VERB",
                  ),
                  EntitySpan(
                      start=47,
                      end=68,
                      label="VERB",
                  ),
              ],
          ),
      )
  
      assert record.predicted == PredictionStatus.OK
  
      record.annotation.entities = record.annotation.entities[1:]
      assert record.predicted == PredictionStatus.KO
  
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 16 for calling a global function with example usage: test_predicted_ok_ko_computation() without return types