class_docstr: Test ParlaiParser.
class_docstr_tok: ["Test","ParlaiParser","."]
docstr: Tests whether short opts like -mtw work.
  
  Known to be tricky in python 3.8.
docstr_tok: ["Tests","whether","short","opts","like","-mtw","work",".","Known","to","be","tricky","in","python","3.8","."]
code: def test_shortopt(self):
      """
      Tests whether short opts like -mtw work.
  
      Known to be tricky in python 3.8.
      """
      pp = ParlaiParser(False, False)
      pp.add_argument("-m", "--model")
      pp.add_argument("-mtw", "--multitask-weights")
      opt = pp.parse_args(["-m", "memnn"])
      print(opt)
  
imports: import os
  import json
  import unittest
  from parlai.core.params import ParlaiParser
  import parlai.core.agents
  import parlai.utils.testing
label_desc: Use image node_id 1 for calling the TestParlaiParser obj's underlying member method code with example usage: obj.test_shortopt() without return types