code: def test_build_sort_configuration(
      index_schema, sort_cfg, expected_sort
  ):
      builder = EsQueryBuilder()
  
      es_sort = builder.map_2_es_sort_configuration(
          sort=SortConfig(sort_by=sort_cfg), schema=index_schema
      )
      assert es_sort == expected_sort
  
file_path: argilla/tests/unit/server/daos/backend/test_query_builder.py
imports: import pytest
  from argilla.server.apis.v0.models.commons.model import ScoreRange
  from argilla.server.apis.v0.models.text_classification import TextClassificationQuery
  from argilla.server.daos.backend.search.model import SortableField, SortConfig, SortOrder
  from argilla.server.daos.backend.search.query_builder import EsQueryBuilder
label_desc: Use image node_id 1 for calling a global function with example usage: test_build_sort_configuration(index_schema, sort_cfg, expected_sort) without return types