code: def test_auto_history_disabled(self):
      output = run_pty(self.auto_history_script.format(False))
      # bpo-44949: Sometimes, the newline character is not written at the
      # end, so don't expect it in the output.
      self.assertIn(b"History length: 0", output)
  
imports: import locale
  import os
  import sys
  import tempfile
  import textwrap
  import unittest
  from test.support import verbose
  from test.support.import_helper import import_module
  from test.support.os_helper import unlink, temp_dir, TESTFN
  from test.support.pty_helper import run_pty
  from test.support.script_helper import assert_python_ok
label_desc: Use image node_id 4 for calling the TestReadline obj's underlying member method code with example usage: obj.test_auto_history_disabled() without return types