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 {} module.".format(self.name),
          prog="hub run {}".format(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)
      results = self.object_detection(
          paths=[args.input_path],
          batch_size=args.batch_size,
          use_gpu=args.use_gpu,
          output_dir=args.output_dir,
          visualization=args.visualization,
          score_thresh=args.score_thresh,
      )
      return results
  
imports: from __future__ import absolute_import
  import ast
  import argparse
  import os
  from functools import partial
  import paddle
  import numpy
  import paddle.jit
  import paddle.static
  from paddle.inference import Config, create_predictor
  from paddlehub.module.module import moduleinfo, runnable, serving
  from .processor import load_label_info, postprocess, base64_to_cv2
  from .data_feed import reader
label_desc: Use image node_id 5 for calling the YOLOv3MobileNetV1Coco2017 obj's underlying member method code with example usage: obj.run_cmd(argvs) and returns: results