code: def _get_turn_type(self, turn):
      for agent_type, prefix in TOD_AGENT_TYPE_TO_PREFIX.items():
          if prefix in turn["text"]:
              return agent_type
  
file_path: ParlAI/projects/tod_simulator/scripts/cleanup_conversation.py
imports: from parlai.core.params import ParlaiParser
  from parlai.utils.conversations import Conversations, Metadata
  from parlai.utils.io import PathManager
  from parlai.core.script import ParlaiScript, register_script
  from parlai.core.tod.tod_core import TodAgentType, TOD_AGENT_TYPE_TO_PREFIX
  import json
label_desc: Use image node_id 2 for calling the ConversationCleanup obj's underlying member method code with example usage: obj._get_turn_type(turn) and returns: agent_type