class_docstr: Methods for agents that return style from their histories.
class_docstr_tok: ["Methods","for","agents","that","return","style","from","their","histories","."]
docstr: Add command-line arguments specifically for this agent.
  
  Does not add arguments from its superclass because it's a mixin.
docstr_tok: ["Add","command-line","arguments","specifically","for","this","agent",".","Does","not","add","arguments","from","its","superclass","because","it","'s","a","mixin","."]
code: def add_cmdline_args(
      cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
  ) -> ParlaiParser:
      """
      Add command-line arguments specifically for this agent.
  
      Does not add arguments from its superclass because it's a mixin.
      """
      agent = parser.add_argument_group("StyleAgentMixin arguments")
      agent.add_argument(
          "--use-style-frac",
          type=float,
          default=1.0,
          help="What fraction of the time to use the style label",
      )
      return agent
  
imports: from parlai.core.params import ParlaiParser
  import random
  from typing import List, Optional
  import numpy
  import torch
  from torch import nn
  from parlai.agents.transformer.modules import TransformerDecoder, TransformerGeneratorModel
  from parlai.core.agents import Agent
  from parlai.core.message import Message
  from parlai.core.opt import Opt
  from parlai.core.torch_classifier_agent import ConfusionMatrixMetric, WeightedF1Metric
  from parlai.utils.misc import warn_once
label_desc: Use image node_id 1 for calling the StyleAgentMixin obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: agent