class_docstr: Wrap around it to check its logic; also makes it easier to do things w/ underlying
  World.
docstr: Hack so we can separate out logic of making sure agent parsing is correct.
docstr_tok: ["Hack","so","we","can","separate","out","logic","of","making","sure","agent","parsing","is","correct","."]
code: def _get_tod_agents(self, opt):
      """
      Hack so we can separate out logic of making sure agent parsing is correct.
      """
      if hasattr(self, "agents"):
          return self.agents
      return super()._get_tod_agents(opt)
  
imports: import copy
  import unittest
  import parlai.core.tod.tod_test_utils.test_agents
  import parlai.core.tod.tod_core
  import parlai.scripts.tod_world_script
  from parlai.core.tod.tod_agents import StandaloneApiAgent
label_desc: Use image node_id 1 for calling the TestTodWorldScript obj's underlying member method code with example usage: obj._get_tod_agents(opt) and returns: super, self