code: def to_client(self) -> ClientText2TextRecord:
      return ClientText2TextRecord(
          text=self.text,
          prediction=[
              (sentence.text, sentence.score)
              for sentence in self.prediction.sentences
          ]
          if self.prediction
          else None,
          prediction_agent=self.prediction.agent
          if self.prediction
          else None,
          annotation=self.annotation.sentences[0].text
          if self.annotation
          else None,
          annotation_agent=self.annotation.agent
          if self.annotation
          else None,
          vectors=self._to_client_vectors(self.vectors),
          status=self.status,
          metadata=self.metadata or {},
          id=self.id,
          event_timestamp=self.event_timestamp,
          metrics=self.metrics or None,
          search_keywords=self.search_keywords or None,
      )
  
file_path: argilla/src/argilla/client/sdk/text2text/models.py
imports: from datetime import datetime
  from typing import Dict, List, Optional, Union
  from argilla.client.models import Text2TextRecord
  from argilla.client.sdk.commons.models import MACHINE_NAME, BaseAnnotation, BaseRecord, PredictionStatus, ScoreRange, SdkVectorSearch, TaskStatus, UpdateDatasetRequest
  from argilla.pydantic_v1 import BaseModel, Field
label_desc: Use image node_id 1 for calling the Text2TextRecord obj's underlying member method code with example usage: obj.to_client() and returns: ClientText2TextRecord