code: def setup_args():
      """
      Creates a parser object with some pre-determined arguments.
      """
      parser = ParlaiParser(
          add_parlai_args=True, description="Render data as HTML"
      )
      conv_render = parser.add_argument_group(
          "Conversation Rendering Arguments"
      )
      conv_render.add_argument(
          "--input", "-i", help="Input file to read conversations from"
      )
      conv_render.add_argument(
          "--output",
          "-o",
          help="Output file to write conversations to. One of [.pdf, .png, .html] only",
      )
      conv_render.add_argument(
          "--width",
          "-wd",
          help="Width of output file",
          type=int,
          default=8,
      )
      conv_render.add_argument(
          "--height",
          "-ht",
          help="Height of output file",
          type=int,
          default=10,
      )
      conv_render.add_argument(
          "--user-icon",
          "-uic",
          help="Absolute Path/URL to user image icon",
          default=HUMAN_EMOJI_IMG,
      )
      conv_render.add_argument(
          "--alt-icon",
          "-aic",
          help="Absolute Path/URL to alternate image icon",
          default=ALT_EMOJI_IMG,
      )
      conv_render.add_argument(
          "--num-examples",
          "-ne",
          help="Number of conversations to render",
          type=int,
          default=10,
      )
  
      return parser
  
imports: import os
  import json
  import random
  import tempfile
  import subprocess
  from parlai.core.params import ParlaiParser
  from parlai.core.script import ParlaiScript, register_script
  from parlai.utils.io import PathManager
label_desc: Use image node_id 6 for calling a global function with example usage: setup_args() and returns: parser