docstr: Run as a command
docstr_tok: ["Run","as","a","command"]
code: def run_cmd(self, argvs):
      """
      Run as a command
      """
      self.parser = argparse.ArgumentParser(
          description="Run the %s module." % self.name,
          prog="hub run %s" % self.name,
          usage="%(prog)s",
          add_help=True,
      )
  
      self.arg_input_group = self.parser.add_argument_group(
          title="Input options", description="Input data. Required"
      )
      self.arg_config_group = self.parser.add_argument_group(
          title="Config options",
          description="Run configuration for controlling module behavior, not required.",
      )
  
      self.add_module_config_arg()
      self.add_module_input_arg()
  
      args = self.parser.parse_args(argvs)
  
      try:
          input_data = self.check_input_data(args)
      except DataFormatError and RuntimeError:
          self.parser.print_help()
          return None
  
      results = self.generate(texts=input_data)
  
      return results
  
file_path: PaddleHub/modules/text/text_generation/ernie_tiny_couplet/module.py
imports: import os
  import ast
  import argparse
  import paddlehub
  from paddlehub.module.module import moduleinfo, serving, runnable
  from paddlehub.module.nlp_module import DataFormatError
label_desc: Use image node_id 4 for calling the ErnieTinyCouplet obj's underlying member method code with example usage: obj.run_cmd(argvs) and returns: results, None