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.add_module_input_arg()
      args = self.parser.parse_args(argvs)
      self.ak = args.ak
      self.sk = args.sk
      self.token = self._apply_token(self.ak, self.sk)
      results = self.generate_image(
          text_prompts=args.text_prompts,
          style=args.style,
          topk=args.topk,
          visualization=args.visualization,
          output_dir=args.output_dir,
      )
      return results
  
imports: import argparse
  import base64
  import os
  import time
  from io import BytesIO
  from typing import Optional
  import gradio
  import numpy
  import requests
  from PIL import Image
  from tqdm.auto import tqdm
  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 ErnieVilG obj's underlying member method code with example usage: obj.run_cmd(argvs) and returns: results