code: def __get_task_config__(cls, task):
      config = cls.get_task_by_task_type(task)
      if not config:
          raise WrongTaskError(
              f"No configuration found for task {task}"
          )
      return config
  
imports: from typing import List, Optional, Set, Type
  from argilla.server.commons.models import TaskType
  from argilla.server.errors import EntityNotFoundError, WrongTaskError
  from argilla.server.pydantic_v1 import BaseModel
  from argilla.server.services.datasets import ServiceBaseDataset, ServiceDataset
  from argilla.server.services.metrics import ServiceBaseMetric
  from argilla.server.services.metrics.models import ServiceBaseTaskMetrics
  from argilla.server.services.search.model import ServiceRecordsQuery
  from argilla.server.services.tasks.commons import ServiceRecord
label_desc: Use image node_id 7 for calling the TasksFactory obj's underlying member method code with example usage: obj.__get_task_config__(cls, task) and returns: config