class_docstr: PP-TinyPose Model.
class_docstr_tok: ["PP-TinyPose","Model","."]
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()
      args = self.parser.parse_args(argvs)
      results = self.predict(
          img=args.input_path,
          save_path=args.output_dir,
          visualization=args.visualization,
          use_gpu=args.use_gpu,
      )
  
      return results
  
imports: import argparse
  import json
  import os
  import time
  from typing import Union
  import cv2
  import numpy
  from .det_keypoint_unite_infer import predict_with_given_det
  from .infer import Detector
  from .keypoint_infer import KeyPointDetector
  from .preprocess import base64_to_cv2
  from .preprocess import decode_image
  from .visualize import visualize_pose
  from paddlehub.module.module import moduleinfo
  from paddlehub.module.module import runnable
  from paddlehub.module.module import serving
label_desc: Use image node_id 4 for calling the PP_TinyPose obj's underlying member method code with example usage: obj.run_cmd(argvs) and returns: results