code: def _get_task(
      self,
      test_file_name: TestFileName,
      task_class: Type[NewTask],
      model_class: Type[Model],
  ) -> Tuple[PyTextConfig, NewTask]:
      pytext_config = self._get_pytext_config(
          test_file_name, task_class, model_class
      )
      task = task_class.from_config(pytext_config.task)
      return pytext_config, task
  
imports: import copy
  import unittest
  from typing import Tuple, Type
  import torch
  from pytext.config import LATEST_VERSION, PyTextConfig
  from pytext.data import Batcher, Data
  from pytext.data.sources.tsv import TSVDataSource
  from pytext.data.tensorizers import FloatListTensorizer
  from pytext.models.doc_model import DocModel, PersonalizedDocModel
  from pytext.models.model import Model
  from pytext.optimizer.optimizers import SGD
  from pytext.task.new_task import NewTask
  from pytext.task.tasks import DocumentClassificationTask
  from pytext.trainers import TaskTrainer
  from pytext.utils.model import get_mismatched_param
  from pytext.utils.test import import_tests_module
label_desc: Use image node_id 2 for calling the PersonalizationTrainerTest obj's underlying member method code with example usage: obj._get_task(test_file_name, task_class, model_class) and returns: pytext_config,  task