code: def test_misaligned_entity_mentions_with_spaces_left():
      assert ServiceTokenClassificationRecord(
          text="according to analysts.\n     Dart Group Corp was not",
          tokens=[
              "according",
              "to",
              "analysts",
              ".",
              "\n     ",
              "Dart",
              "Group",
              "Corp",
              "was",
              "not",
          ],
          annotation=TokenClassificationAnnotation(
              agent="heuristics",
              entities=[
                  EntitySpan(
                      start=22, end=43, label="COMPANY", score=1.0
                  )
              ],
              score=None,
          ),
      )
  
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 9 for calling a global function with example usage: test_misaligned_entity_mentions_with_spaces_left() without return types