class_docstr: Base class with convenience functions for setting up agents, dumping text, etc.
class_docstr_tok: ["Base","class","with","convenience","functions","for","setting","up","agents",",","dumping","text",",","etc","."]
code: def setup_agent_or_teacher(self, class_type, round_opt, opt):
      full_opts = {**round_opt, **opt}
      full_opts["datatype"] = "DUMMY"
      full_opts["datafile"] = "DUMMY"
      full_opts["episodes_randomization_seed"] = -1  # no random here
      return class_type(full_opts)
  
imports: import unittest
  import copy
  import parlai.core.tod.tod_core
  import parlai.core.tod.tod_test_utils.test_agents
label_desc: Use image node_id 1 for calling the TestTodAgentsAndTeachersBase obj's underlying member method code with example usage: obj.setup_agent_or_teacher(class_type, round_opt, opt) and returns: class_type