class_docstr: Tests for the LIGHT Dialogue Teacher.
code: def test_counts(self):
      with testing_utils.tempdir() as tmpdir:
          proportions = [0.1, 0.5, 1.0]
          for proportion in proportions:
              all_kwargs = {
                  "datatype": "train",
                  "task": "light_dialog",
                  "datapath": tmpdir,
                  "light_percent_train_exs": proportion,
              }
              parser = setup_args()
              parser.set_defaults(**all_kwargs)
              opt = parser.parse_args([])
              agent = RepeatLabelAgent(opt)
              teacher = create_task(opt, agent).get_task_agent()
              self.assertEqual(
                  teacher.num_episodes(), int(NUM_EPS * proportion)
              )
  
file_path: ParlAI/tests/tasks/test_light.py
imports: import unittest
  import parlai.utils.testing
  from parlai.agents.repeat_label.repeat_label import RepeatLabelAgent
  from parlai.core.worlds import create_task
  from parlai.scripts.display_data import setup_args
label_desc: Use image node_id 1 for calling the TestLightTeacher obj's underlying member method code with example usage: obj.test_counts() without return types