code: def setup_args(cls):
      parser = ParlaiParser(
          True, True, description="Compute tokenized stats."
      )
      parser.add_argument("--num-examples", "-n", type=int, default=-1)
      parser.add_argument(
          "-ltim", "--log-every-n-secs", type=float, default=10
      )
      parser.add_argument("--field", default="text")
      parser.add_argument("--final-only", type="bool", default=False)
      parser.set_defaults(
          no_cuda=True,
          model="test_agents/null",
          datatype="train:stream:ordered",
      )
      return parser
  
file_path: ParlAI/parlai/scripts/token_stats.py
imports: import numpy
  from parlai.core.script import ParlaiScript, register_script
  from parlai.core.agents import create_agent
  from parlai.core.torch_agent import TorchAgent
  from parlai.core.worlds import create_task
  from parlai.core.params import ParlaiParser
  from parlai.utils.misc import TimeLogger, nice_report
  import parlai.utils.logging
label_desc: Use image node_id 1 for calling the TokenStats obj's underlying member method code with example usage: obj.setup_args(cls) and returns: parser