code: def __init__(self, args):
      self.args = args
  
      store_true_arg_names = [
          "train",
          "deploy",
          "inference",
          "auto_find_batch_size",
          "push_to_hub",
          "peft",
      ]
      for arg_name in store_true_arg_names:
          if getattr(self.args, arg_name) is None:
              setattr(self.args, arg_name, False)
  
      if self.args.train:
          if self.args.project_name is None:
              raise ValueError("Project name must be specified")
          if self.args.data_path is None:
              raise ValueError("Data path must be specified")
          if self.args.model is None:
              raise ValueError("Model must be specified")
          if self.args.push_to_hub:
              if (
                  self.args.repo_id is None
                  and self.args.username is None
              ):
                  raise ValueError(
                      "Repo id / username must be specified for push to hub"
                  )
      else:
          raise ValueError(
              "Must specify --train, --deploy or --inference"
          )
  
      if len(self.args.target_modules.strip()) == 0:
          self.args.target_modules = []
      else:
          self.args.target_modules = self.args.target_modules.split(",")
  
file_path: autotrain-advanced/src/autotrain/cli/run_seq2seq.py
imports: from argparse import ArgumentParser
  from autotrain import logger
  from autotrain.cli.utils import common_args, seq2seq_munge_data
  from autotrain.project import AutoTrainProject
  from autotrain.trainers.seq2seq.params import Seq2SeqParams
  from .None import BaseAutoTrainCommand
label_desc: Use image node_id 2 to create a new RunAutoTrainSeq2SeqCommand object from inherited base classes: BaseAutoTrainCommand with example: obj = RunAutoTrainSeq2SeqCommand(args)