class_docstr: Test classifier on generator.
class_docstr_tok: ["Test","classifier","on","generator","."]
code: def test_simple(self):
      valid, test = testing_utils.train_model(
          Opt(
              dict(
                  task="integration_tests:classifier",
                  model="projects.style_gen.classifier:ClassifierAgent",
                  classes=["one", "zero"],
                  optimizer="adamax",
                  truncate=8,
                  learningrate=7e-3,
                  batchsize=16,
                  num_epochs=5,
                  n_layers=1,
                  n_heads=1,
                  ffn_size=32,
                  embedding_size=32,
              )
          )
      )
      self.assertEqual(valid["accuracy"], 1.0)
      self.assertEqual(test["accuracy"], 1.0)
  
file_path: ParlAI/tests/nightly/gpu/test_style_gen.py
imports: import unittest
  import parlai.utils.testing
  from parlai.core.opt import Opt
label_desc: Use image node_id 1 for calling the TestClassifierOnGenerator obj's underlying member method code with example usage: obj.test_simple() without return types