code: def test_interact(self):
      out, err = self.run_cli()
      self.assertIn(self.MEMORY_DB_MSG, err)
      self.assertIn(self.MEMORY_DB_MSG, err)
      self.assertTrue(out.endswith(self.PS1))
      self.assertEqual(out.count(self.PS1), 1)
      self.assertEqual(out.count(self.PS2), 0)
  
imports: import sqlite3
  import unittest
  from sqlite3.__main__ import main
  from test.support.os_helper import TESTFN, unlink
  from test.support import captured_stdout, captured_stderr, captured_stdin
label_desc: Use image node_id 2 for calling the InteractiveSession obj's underlying member method code with example usage: obj.test_interact() without return types