code: def test_from_client_prediction(prediction, expected):
      record = TokenClassificationRecord(
          text="this is a test text",
          tokens=["this", "is", "a", "test", "text"],
          prediction=prediction,
          metrics={"not_passed_on": 0},
      )
      sdk_record = CreationTokenClassificationRecord.from_client(record)
  
      assert sdk_record.prediction.entities[0].score == pytest.approx(
          expected
      )
      assert sdk_record.metrics == {}
  
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 3 for calling a global function with example usage: test_from_client_prediction(prediction, expected) without return types