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_input_arg()
  
      args = self.parser.parse_args(argvs)
  
      try:
          input_data = self.check_input_data(args)
      except RuntimeError:
          self.parser.print_help()
          return None
  
      use_gpu = args.use_gpu
      self.ExtractLine(image=input_data, use_gpu=use_gpu)
  
file_path: PaddleHub/modules/image/semantic_segmentation/Extract_Line_Draft/module.py
imports: import argparse
  import ast
  import os
  import cv2
  from pathlib import Path
  from paddle.inference import Config, create_predictor
  from paddlehub.module.module import runnable, moduleinfo
  import numpy
  from .function import get_light_map_single, normalize_pic, resize_img_512_3d, show_active_img_and_save_denoise
label_desc: Use image node_id 5 for calling the ExtractLineDraft obj's underlying member method code with example usage: obj.run_cmd(argvs) and returns: None