docstr: Run as a command.
docstr_tok: ["Run","as","a","command","."]
code: def run_cmd(self, argvs: list):
      """
      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()
      self.args = self.parser.parse_args(argvs)
      results = self.style_transfer(
          paths=[self.args.input_path],
          output_dir=self.args.output_dir,
          use_gpu=self.args.use_gpu,
          need_animation=self.args.need_animation,
          visualization=self.args.visualization,
      )
      return results
  
imports: import os
  import argparse
  import copy
  import paddle
  import paddlehub
  from paddlehub.module.module import moduleinfo, runnable, serving
  import numpy
  import cv2
  from skimage.io import imread
  from skimage.transform import rescale, resize
  from .model import Painter
  from .render_utils import totensor, read_img
  from .render_serial import render_serial
  from .util import base64_to_cv2
label_desc: Use image node_id 3 for calling the paint_transformer obj's underlying member method code with example usage: obj.run_cmd(argvs) and returns: results