class_docstr: Test that a deprecated api signature for add_cmdline_args is not accepted.
class_docstr_tok: ["Test","that","a","deprecated","api","signature","for","add_cmdline_args","is","not","accepted","."]
code: def test_bad_task(self):
      from parlai.core.teachers import register_teacher
  
      @register_teacher("bad_addcmdlineargs_teacher")
      class TestAgent:
          @classmethod
          def add_cmdline_args(cls, argparser):
              argparser.add_argument("--no-find", default=True)
              return argparser
  
      with self.assertRaises(TypeError) as cm:
          ParlaiParser(True, True).parse_kwargs(
              model="repeat_query", task="bad_addcmdlineargs_teacher"
          )
          self.assertIn(
              "add_cmdline_args(argparser)", "\n".join(cm.output)
          )
  
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 3 for calling the TestAddCmdlineArgs obj's underlying member method code with example usage: obj.test_bad_task() and returns: argparser