class_docstr: The TextAttack train module:
  
  A command line parser to train a model from user specifications.
class_docstr_tok: ["The","TextAttack","train","module",":","A","command","line","parser","to","train","a","model","from","user","specifications","."]
code: def run(self, args):
      training_args = CommandLineTrainingArgs(**vars(args))
      model_wrapper = CommandLineTrainingArgs._create_model_from_args(
          training_args
      )
      (
          train_dataset,
          eval_dataset,
      ) = CommandLineTrainingArgs._create_dataset_from_args(
          training_args
      )
      attack = CommandLineTrainingArgs._create_attack_from_args(
          training_args, model_wrapper
      )
      trainer = Trainer(
          model_wrapper,
          training_args.task_type,
          attack,
          train_dataset,
          eval_dataset,
          training_args,
      )
      trainer.train()
  
imports: from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser
  from textattack import CommandLineTrainingArgs, Trainer
  from textattack.commands import TextAttackCommand
label_desc: Use image node_id 1 for calling the TrainModelCommand obj's underlying member method code with example usage: obj.run(args) without return types