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.generate_image(
          text_prompts=args.text_prompts,
          style=args.style,
          artist=args.artist,
          init_image=args.init_image,
          width_height=args.width_height,
          skip_steps=args.skip_steps,
          steps=args.steps,
          cut_ic_pow=args.cut_ic_pow,
          init_scale=args.init_scale,
          clip_guidance_scale=args.clip_guidance_scale,
          tv_scale=args.tv_scale,
          range_scale=args.range_scale,
          sat_scale=args.sat_scale,
          cutn_batches=args.cutn_batches,
          diffusion_sampling_mode=args.diffusion_sampling_mode,
          perlin_init=args.perlin_init,
          perlin_mode=args.perlin_mode,
          seed=args.seed,
          eta=args.eta,
          clamp_grad=args.clamp_grad,
          clamp_max=args.clamp_max,
          randomize_class=args.randomize_class,
          clip_denoised=args.clip_denoised,
          fuzzy_prompt=args.fuzzy_prompt,
          rand_mag=args.rand_mag,
          cut_overview=args.cut_overview,
          cut_innercut=args.cut_innercut,
          cut_icgray_p=args.cut_icgray_p,
          display_rate=args.display_rate,
          n_batches=args.n_batches,
          batch_size=args.batch_size,
          batch_name=args.batch_name,
          output_dir=args.output_dir,
      )
      return results
  
imports: import argparse
  import ast
  import os
  import sys
  from functools import partial
  from typing import List
  from typing import Optional
  import paddle
  from disco_diffusion_cnclip_vitb16 import resize_right
  from disco_diffusion_cnclip_vitb16.reverse_diffusion import create
  import paddlehub
  from paddlehub.module.module import moduleinfo
  from paddlehub.module.module import runnable
  from paddlehub.module.module import serving
label_desc: Use image node_id 3 for calling the DiscoDiffusionClip obj's underlying member method code with example usage: obj.run_cmd(argvs) and returns: results