class_docstr: Test ParlaiParser.
class_docstr_tok: ["Test","ParlaiParser","."]
docstr: Test parse_kwargs when provided an argument with >1 item.
docstr_tok: ["Test","parse_kwargs","when","provided","an","argument","with",">","1","item","."]
code: def test_parse_kwargs_nargsplus(self):
      """
      Test parse_kwargs when provided an argument with >1 item.
      """
      parser = ParlaiParser(False, False)
      parser.add_argument(
          "--example", nargs="+", choices=["a", "b", "c"]
      )
      opt = parser.parse_args(["--example", "a", "b"])
      assert opt["example"] == ["a", "b"]
  
      parser = ParlaiParser(False, False)
      parser.add_argument(
          "--example", nargs="+", choices=["a", "b", "c"]
      )
      opt = parser.parse_kwargs(example=["a", "b"])
      assert opt["example"] == ["a", "b"]
  
      parser = ParlaiParser(False, False)
      parser.add_argument("--example", nargs="+")
      opt = parser.parse_kwargs(example=["x", "y"])
      assert opt["example"] == ["x", "y"]
  
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 8 for calling the TestParlaiParser obj's underlying member method code with example usage: obj.test_parse_kwargs_nargsplus() without return types