code: def test_fix_substrings():
      text = "On one ones o no"
      ServiceTokenClassificationRecord(
          text=text,
          tokens=text.split(),
          prediction=TokenClassificationAnnotation(
              agent="test",
              entities=[
                  EntitySpan(start=3, end=6, label="test"),
              ],
          ),
      )
  
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 2 for calling a global function with example usage: test_fix_substrings() without return types