code: def finalize_episode(self):
      print("\nCHAT DONE.\n")
      if self.display_partner_persona:
          partner_persona = self.p2.replace(
              "your persona:", "partner's persona:"
          )
          print(
              f"Your partner was playing the following persona:\n{partner_persona}"
          )
      if not self.epoch_done():
          print("[ Preparing new chat ... ]\n")
  
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from parlai.core.worlds import create_task
  from parlai.agents.fixed_response.fixed_response import FixedResponseAgent
  from parlai.tasks.self_chat.worlds import SelfChatWorld
  from parlai.tasks.interactive.worlds import InteractiveWorld
  import random
label_desc: Use image node_id 5 for calling the InteractiveWorld obj's underlying member method code with example usage: obj.finalize_episode() without return types