code: def test_toggle_tabs(self, askyesno):
      editor = DummyEditwin(None, None)  # usetabs == False.
      indents = ft.Indents(editor)
      askyesno.return_value = True
  
      indents.toggle_tabs_event(None)
      self.assertEqual(editor.usetabs, True)
      self.assertEqual(editor.indentwidth, 8)
  
      indents.toggle_tabs_event(None)
      self.assertEqual(editor.usetabs, False)
      self.assertEqual(editor.indentwidth, 8)
  
imports: from idlelib import format
  import unittest
  from unittest import mock
  from test.support import requires
  from tkinter import Tk, Text
  from idlelib.editor import EditorWindow
  from idlelib.idle_test.mock_idle import Editor
label_desc: Use image node_id 1 for calling the IndentsTest obj's underlying member method code with example usage: obj.test_toggle_tabs(askyesno) without return types