code: def test_to_client():
      prediction = Text2TextAnnotation(
          sentences=[
              Text2TextPrediction(text="pred_prueba", score=0.5),
              Text2TextPrediction(text="pred_prueba2", score=0.5),
          ],
          agent="pred_agent",
      )
      annotation = Text2TextAnnotation(
          sentences=[
              Text2TextPrediction(text="annot_prueba", score=0.5),
              Text2TextPrediction(text="annot_prueba2", score=0.5),
          ],
          agent="annot_agent",
      )
  
      sdk_record = SdkText2TextRecord(
          text="test",
          prediction=prediction,
          annotation=annotation,
          event_timestamp=datetime(2000, 1, 1),
          metrics={"tokens_length": 42},
      )
  
      record = sdk_record.to_client()
  
      assert record.prediction == [
          ("pred_prueba", 0.5),
          ("pred_prueba2", 0.5),
      ]
      assert record.prediction_agent == "pred_agent"
      assert record.annotation == "annot_prueba"
      assert record.annotation_agent == "annot_agent"
      assert record.metrics == {"tokens_length": 42}
  
file_path: argilla/tests/unit/client/sdk/models/test_text2text.py
imports: import socket
  from datetime import datetime
  import pytest
  from argilla.client.models import Text2TextRecord
  from argilla.client.sdk.text2text.models import CreationText2TextRecord, Text2TextAnnotation, Text2TextBulkData, Text2TextPrediction, Text2TextQuery
  from argilla.client.sdk.text2text.models import Text2TextRecord
  from argilla.server.apis.v0.models.text2text import Text2TextBulkRequest
  from argilla.server.apis.v0.models.text2text import Text2TextQuery
label_desc: Use image node_id 5 for calling a global function with example usage: test_to_client() without return types