docstr: Apply logic to end the episode.
docstr_tok: ["Apply","logic","to","end","the","episode","."]
code: def _end_episode(self):
      """
      Apply logic to end the episode.
      """
      self.turn_cnt = 0
      self.episode_cnt += 1
      self.contexts = None
      self.seed_utterances = None
      self.reset_agents()
  
imports: import copy
  import random
  from typing import Any, Dict, List, Optional
  from parlai.agents.fixed_response.fixed_response import FixedResponseAgent
  from parlai.core.agents import Agent
  from parlai.core.worlds import create_task, DialogPartnerWorld, validate
  from parlai.core.message import Message
label_desc: Use image node_id 10 for calling the SelfChatWorld obj's underlying member method code with example usage: obj._end_episode() without return types