docstr: Return conversation halves to add to self.data.
  
  Given lists corresponding to the conversation turns from both sides of the
  conversation, return only the list(s) that will be used by the teacher.
  Optionally include both sides of the conversation.
docstr_tok: ["Return","conversation","halves","to","add","to","self.data",".","Given","lists","corresponding","to","the","conversation","turns","from","both","sides","of","the","conversation",",","return","only","the","list","(","s",")","that","will","be","used","by","the","teacher",".","Optionally","include","both","sides","of","the","conversation","."]
code: def _select_dialogues_to_add(
      self,
      experiencer_text_dialogue: List[Message],
      responder_text_dialogue: List[Message],
  ) -> List[List[Message]]:
      """
      Return conversation halves to add to self.data.
  
      Given lists corresponding to the conversation turns from both sides of the
      conversation, return only the list(s) that will be used by the teacher.
      Optionally include both sides of the conversation.
      """
      selected_dialogues = []
      if len(experiencer_text_dialogue) > 0:
          selected_dialogues.append(experiencer_text_dialogue)
      if (
          len(responder_text_dialogue) > 0
          and not self.experiencer_side_only
      ):
          selected_dialogues.append(responder_text_dialogue)
      return selected_dialogues
  
imports: import os
  from typing import List, Optional
  import parlai.utils.logging
  from parlai.utils.io import PathManager
  from parlai.core.message import Message
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from parlai.core.teachers import DialogTeacher
  from .build import build
label_desc: Use image node_id 7 for calling the EmpatheticDialoguesTeacher obj's underlying member method code with example usage: obj._select_dialogues_to_add(experiencer_text_dialogue, responder_text_dialogue) and returns: selected_dialogues