code: def _get_pytext_config(
      self,
      test_file_name: TestFileName,
      task_class: Type[NewTask],
      model_class: Type[Model],
  ) -> PyTextConfig:
      test_file_metadata = get_test_file_metadata(test_file_name)
      return PyTextConfig(
          task=task_class.Config(
              data=Data.Config(
                  source=TSVDataSource.Config(
                      train_filename=test_file_metadata.filename,
                      eval_filename=test_file_metadata.filename,
                      test_filename=test_file_metadata.filename,
                      field_names=test_file_metadata.field_names,
                  ),
                  batcher=Batcher.Config(),  # Use Batcher to avoid shuffling.
              ),
              trainer=TaskTrainer.Config(epochs=1),
              model=model_class.Config(
                  inputs=type(model_class.Config.inputs)(
                      dense=FloatListTensorizer.Config(
                          column=test_file_metadata.dense_col_name,
                          dim=test_file_metadata.dense_feat_dim,
                      )
                  )
              ),
          ),
          use_tensorboard=False,
          use_cuda_if_available=False,
          version=LATEST_VERSION,
      )
  
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 1 for calling the PersonalizationTrainerTest obj's underlying member method code with example usage: obj._get_pytext_config(test_file_name, task_class, model_class) and returns: PyTextConfig