docstr: Enter the interactive mode.
  
  Args:
      max_turn(int): the max dialogue turns. max_turn = 1 means the robot can only remember the last one utterance you have said.
docstr_tok: ["Enter","the","interactive","mode",".","Args",":","max_turn","(","int",")",":","the","max","dialogue","turns",".","max_turn","=","1","means","the","robot","can","only","remember","the","last","one","utterance","you","have","said","."]
code: def interactive_mode(self, max_turn=6):
      """
      Enter the interactive mode.
  
      Args:
          max_turn(int): the max dialogue turns. max_turn = 1 means the robot can only remember the last one utterance you have said.
      """
      self._interactive_mode = True
      self.max_turn = max_turn
      self.context = []
      yield
      self.context = []
      self._interactive_mode = False
  
imports: import argparse
  import contextlib
  import os
  import sys
  from collections import namedtuple
  import paddle
  import paddle.nn
  import paddlehub
  from .model import Plato2InferModel
  from .readers.nsp_reader import NSPReader
  from .readers.plato_reader import PlatoReader
  from .utils import gen_inputs
  from .utils.args import parse_args
  from .utils.args import str2bool
  from paddlehub.module.module import moduleinfo
  from paddlehub.module.module import runnable
  from paddlehub.module.module import serving
  from paddlehub.module.nlp_module import DataFormatError
label_desc: Use image node_id 4 for calling the Plato2 obj's underlying member method code with example usage: obj.interactive_mode(max_turn) without return types