code: def test_entities_with_spaces():
      text = "This is  a  great  space"
      ServiceTokenClassificationRecord(
          text=text,
          tokens=["This", "is", " ", "a", " ", "great", " ", "space"],
          prediction=TokenClassificationAnnotation(
              agent="test",
              entities=[
                  EntitySpan(start=9, end=len(text), 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 3 for calling a global function with example usage: test_entities_with_spaces() without return types