code: def test_to_client():
      prediction = TokenClassificationAnnotation(
          entities=[EntitySpan(label="pred_label", start=0, end=4)],
          agent="pred_agent",
      )
      annotation = TokenClassificationAnnotation(
          entities=[EntitySpan(label="annot_label", start=5, end=7)],
          agent="annot_agent",
      )
  
      sdk_record = SdkTokenClassificationRecord(
          text="this is a test text",
          tokens=["this", "is", "a", "test", "text"],
          annotation=annotation,
          prediction=prediction,
          event_timestamp=datetime(2000, 1, 1),
          metrics={"tokens_length": 42},
      )
  
      record = sdk_record.to_client()
  
      assert isinstance(record, TokenClassificationRecord)
      assert record.prediction == [("pred_label", 0, 4, 1.0)]
      assert record.prediction_agent == "pred_agent"
      assert record.annotation == [("annot_label", 5, 7)]
      assert record.annotation_agent == "annot_agent"
      assert record.metrics == {"tokens_length": 42}
  
file_path: argilla/tests/unit/client/sdk/models/test_token_classification.py
imports: import socket
  from datetime import datetime
  import pytest
  from argilla.client.models import TokenClassificationRecord
  from argilla.client.sdk.token_classification.models import CreationTokenClassificationRecord, EntitySpan, TokenClassificationAnnotation, TokenClassificationBulkData, TokenClassificationQuery
  from argilla.client.sdk.token_classification.models import TokenClassificationRecord
  from argilla.server.apis.v0.models.token_classification import TokenClassificationBulkRequest
  from argilla.server.apis.v0.models.token_classification import TokenClassificationQuery
label_desc: Use image node_id 5 for calling a global function with example usage: test_to_client() without return types