code: def setup_args(parser=None):
      if not parser:
          parser = ParlaiParser(False, False)
      group = parser.add_argument_group(
          "Get active learning samples script"
      )
      group.add_argument(
          "--find-random-al-samples",
          type=bool,
          default=False,
          help="Get active learning samples randomly or few shot",
      )
      group.add_argument(
          "--input-processed-stats",
          type=str,
          help="Processed stats file from the `get_passing_only` script",
      )
      group.add_argument(
          "--processed-stats-section",
          type=str,
          default="MISSES",
          help="Which section from the `get_passing_only` script will we use to rank. (MISSES and FRACTIONAL current options)",
      )
      group.add_argument(
          "--num-apis-to-get",
          default=8,
          type=int,
          help="Number of api descriptions we want to find",
      )
      group.add_argument(
          "--existing-al-files",
          nargs="*",
          type=str,
          help="Existing active learning files (ie, for running multiple iterations of learning)",
      )
      group.add_argument(
          "--cumulative-al",
          type=bool,
          default=True,
          help="Uses active learning files from '--existing-al-files' cumulatively (as in, will append all prior dialog ids for next, rather than excluding)",
      )
      group.add_argument(
          "--al-output-file",
          default=None,
          help="Output file. Will put into 'results' in active run directory otherwise.",
      )
      return parser
  
imports: from parlai.core.params import ParlaiParser
  from parlai.core.script import ParlaiScript, register_script
  from parlai.tasks.google_sgd_simulation_splits.agents import GoogleSgdOutDomainParser
  from parlai.core.tod.tod_agents import TodStructuredDataParser
  import parlai
  import os
  import json
  import random
label_desc: Use image node_id 1 for calling a global function with example usage: setup_args(parser) and returns: parser