class_docstr: Task is the central place to define and wire up components for data processing,
  model training, metric reporting, etc. Task class has a Config class containing
  the config of each component in a descriptive way.
class_docstr_tok: ["Task","is","the","central","place","to","define","and","wire","up","components","for","data","processing",",","model","training",",","metric","reporting",",","etc",".","Task","class","has","a","Config","class","containing","the","config","of","each","component","in","a","descriptive","way","."]
docstr: Wrapper method to compute test metrics on holdout blind test dataset.
  
  Args:
      test_path (str): test data file path
docstr_tok: ["Wrapper","method","to","compute","test","metrics","on","holdout","blind","test","dataset",".","Args",":","test_path","(","str",")",":","test","data","file","path"]
code: def test(self, test_path):
      """
      Wrapper method to compute test metrics on holdout blind test dataset.
  
      Args:
          test_path (str): test data file path
      """
      self.data_handler.test_path = test_path
      test_iter = self.data_handler.get_test_iter()
      return self.trainer.test(
          test_iter, self.model, self.metric_reporter
      )
  
imports: from typing import List, Optional
  from pytext.common.constants import BatchContext
  from pytext.config import ConfigBase
  from pytext.config.component import Component, ComponentType, create_component, create_data_handler, create_exporter, create_featurizer, create_metric_reporter, create_model, create_trainer
  from pytext.config.field_config import FeatureConfig
  from pytext.data import DataHandler
  from pytext.data.featurizer import Featurizer, SimpleFeaturizer
  from pytext.exporters import ModelExporter
  from pytext.loss import KLDivergenceBCELoss, KLDivergenceCELoss
  from pytext.metric_reporters import MetricReporter
  from pytext.models import Model
  from pytext.trainers import Trainer
  from pytext.utils import cuda
  from pytext.utils.usage import log_class_usage
label_desc: Use image node_id 4 for calling the TaskBase obj's underlying member method code with example usage: obj.test(test_path) and returns: self