code: def from_client(cls, record: ClientText2TextRecord):
      prediction = None
      if record.prediction is not None:
          prediction = Text2TextAnnotation(
              sentences=[
                  Text2TextPrediction(text=pred[0], score=pred[1])
                  if isinstance(pred, tuple)
                  else Text2TextPrediction(text=pred)
                  for pred in record.prediction
              ],
              agent=record.prediction_agent or MACHINE_NAME,
          )
      annotation = None
      if record.annotation is not None:
          annotation = Text2TextAnnotation(
              sentences=[Text2TextPrediction(text=record.annotation)],
              agent=record.annotation_agent or MACHINE_NAME,
          )
  
      return cls(
          text=record.text,
          prediction=prediction,
          annotation=annotation,
          vectors=cls._from_client_vectors(record.vectors),
          status=record.status,
          metadata=record.metadata,
          id=record.id,
          event_timestamp=record.event_timestamp,
      )
  
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 CreationText2TextRecord obj's underlying member method code with example usage: obj.from_client(cls, record) and returns: cls