code: def test_to_es_query():
      query = TokenClassificationQuery(ids=[1, 2, 3])
      assert EsQueryBuilder._to_es_query(query) == {
          "ids": {"values": query.ids}
      }
  
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 8 for calling a global function with example usage: test_to_es_query() without return types