class_docstr: Hold some config params to control generation and report procedure.
class_docstr_tok: ["Hold","some","config","params","to","control","generation","and","report","procedure","."]
docstr: Check common config params.
docstr_tok: ["Check","common","config","params","."]
code: def check_config(self):
      r"""
      Check common config params.
  
      """
      if self.task.upper() not in NLP_TASK_MAP:
          logger.error(
              "Your task is {0}, just support {1}.".format(
                  self.task, NLP_TASK_MAP.keys()
              )
          )
  
      assert isinstance(self.out_dir, str)
      assert isinstance(self.max_trans, int)
      assert isinstance(self.random_seed, int)
      assert isinstance(self.fields, (str, list))
      assert isinstance(self.trans_config, dict)
      assert isinstance(self.return_unk, bool)
      assert isinstance(self.sub_config, dict)
  
      if self.flint_model:
          assert os.path.exists(self.flint_model), (
              "Please input a exist python file path "
              "which contains FlintModel instance"
          )
  
      if self.attack_methods:
          assert os.path.exists(self.attack_methods), (
              "Please input a exist python file path "
              "which contains Attack instance"
          )
  
      if self.validate_methods:
          assert isinstance(self.validate_methods, (str, list))
  
file_path: textflint/textflint/input/config/config.py
imports: import os
  import six
  import json
  import copy
  from ...common.utils.logger import logger
  from ...common.settings import NLP_TASK_MAP, ALLOWED_TRANSFORMATIONS, TRANSFORM_FIELDS, ALLOWED_SUBPOPULATIONS, ALLOWED_VALIDATORS, ALLOWED_cn_TRANSFORMATIONS
label_desc: Use image node_id 2 for calling the Config obj's underlying member method code with example usage: obj.check_config() without return types