docstr: Returns the client model
docstr_tok: ["Returns","the","client","model"]
code: def to_client(self) -> ClientTextClassificationRecord:
      """Returns the client model"""
      annotations = (
          [label.class_label for label in self.annotation.labels]
          if self.annotation
          else None
      )
      if annotations and not self.multi_label:
          annotations = annotations[0]
  
      return ClientTextClassificationRecord(
          id=self.id,
          event_timestamp=self.event_timestamp,
          inputs=self.inputs,
          multi_label=self.multi_label,
          status=self.status,
          metadata=self.metadata or {},
          prediction=[
              (label.class_label, label.score)
              for label in self.prediction.labels
          ]
          if self.prediction
          else None,
          prediction_agent=self.prediction.agent
          if self.prediction
          else None,
          annotation=annotations,
          annotation_agent=self.annotation.agent
          if self.annotation
          else None,
          vectors=self._to_client_vectors(self.vectors),
          explanation={
              key: [
                  ClientTokenAttributions.parse_obj(attribution)
                  for attribution in attributions
              ]
              for key, attributions in self.explanation.items()
          }
          if self.explanation
          else None,
          metrics=self.metrics or None,
          search_keywords=self.search_keywords or None,
      )
  
imports: from datetime import datetime
  from typing import Dict, List, Optional, Union
  from argilla.client.models import TextClassificationRecord
  from argilla.client.models import TokenAttributions
  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 TextClassificationRecord obj's underlying member method code with example usage: obj.to_client() and returns: ClientTextClassificationRecord