code: def test_from_client_agent(
      pred_agent, annot_agent, pred_expected, annot_expected
  ):
      record = TextClassificationRecord(
          text="test",
          prediction=[("label1", 0.5), ("label2", 0.5)],
          annotation="label1",
          prediction_agent=pred_agent,
          annotation_agent=annot_agent,
          metrics={"not_passed_on": 0},
      )
      sdk_record = CreationTextClassificationRecord.from_client(record)
  
      assert sdk_record.annotation.agent == annot_expected
      assert sdk_record.prediction.agent == pred_expected
      assert sdk_record.metrics == {}
  
file_path: argilla/tests/unit/client/sdk/models/test_text_classification.py
imports: import socket
  from datetime import datetime
  import pytest
  from argilla.client.models import TextClassificationRecord, TokenAttributions
  from argilla.client.sdk.text_classification.models import ClassPrediction, CreationTextClassificationRecord, LabelingRule, LabelingRuleMetricsSummary, TextClassificationAnnotation, TextClassificationBulkData, TextClassificationQuery
  from argilla.client.sdk.text_classification.models import TextClassificationRecord
  from argilla.server.apis.v0.models.text_classification import LabelingRule
  from argilla.server.apis.v0.models.text_classification import LabelingRuleMetricsSummary
  from argilla.server.apis.v0.models.text_classification import TextClassificationBulkRequest
  from argilla.server.apis.v0.models.text_classification import TextClassificationQuery
label_desc: Use image node_id 7 for calling a global function with example usage: test_from_client_agent(pred_agent, annot_agent, pred_expected, annot_expected) without return types