class_docstr: Text classification service
class_docstr_tok: ["Text","classification","service"]
code: def __init__(
      self,
      datasets: DatasetsService,
      metrics: MetricsService,
      storage: RecordsStorageService,
      search: SearchRecordsService,
  ):
      self.__storage__ = storage
      self.__search__ = search
      self.__metrics__ = metrics
      self.__datasets__ = datasets
  
imports: from typing import Iterable, List, Optional, Tuple
  from fastapi import Depends
  from argilla.server.errors.base_errors import EntityAlreadyExistsError, EntityNotFoundError, MissingDatasetRecordsError
  from argilla.server.services.datasets import DatasetsService
  from argilla.server.services.metrics import MetricsService
  from argilla.server.services.search.model import ServiceSearchResults, ServiceSortableField, ServiceSortConfig
  from argilla.server.services.search.service import SearchRecordsService
  from argilla.server.services.storage.service import RecordsStorageService
  from argilla.server.services.tasks.commons import BulkResponse
  from argilla.server.services.tasks.text_classification.metrics import TextClassificationMetrics
  from argilla.server.services.tasks.text_classification.model import DatasetLabelingRulesMetricsSummary, DatasetLabelingRulesSummary, LabelingRuleMetricsSummary, LabelingRuleSummary, ServiceLabelingRule, ServiceTextClassificationDataset, ServiceTextClassificationQuery, ServiceTextClassificationRecord
label_desc: Use image node_id 2 to create a new TextClassificationService object  with example: obj = TextClassificationService(datasets, metrics, storage, search)