code: def add_common_args(parser):
      """
      Add arguments common across all of the datasets.
      """
      agent = parser.add_argument_group("Gender Multiclass args")
      agent.add_argument(
          "--balance",
          type="bool",
          default=False,
          help="Whether to balance the data between classes during training",
      )
      agent.add_argument(
          "--balance-valid",
          type="bool",
          default=False,
          help="Whether to balance the validation data",
      )
      agent.add_argument(
          "--add-unknown-classes",
          type="bool",
          default=False,
          help="Add unknown classes as neutral",
      )
      agent.add_argument(
          "--unknown-temp",
          type=float,
          default=1.0,
          help="Rate at which to sample examples from the unknown class",
      )
      return parser
  
file_path: ParlAI/parlai/tasks/md_gender/utils.py
imports: import os
  import random
  from collections import defaultdict
  from parlai.tasks.md_gender.build import build
label_desc: Use image node_id 2 for calling a global function with example usage: add_common_args(parser) and returns: parser