code: def test_decode(self):
      # test endflags (-1, 0) not tested by test_index (which uses +1)
      decode = self.text._decode
      Equal = self.assertEqual
      self.text.insert("1.0", self.hw)
  
      Equal(decode("end", -1), (2, 5))
      Equal(decode("3.1", -1), (2, 5))
      Equal(decode("end", 0), (2, 6))
      Equal(decode("3.1", 0), (2, 6))
  
imports: import unittest
  from test.test_support import requires
  from _tkinter import TclError
label_desc: Use image node_id 2 for calling the MockTextTest obj's underlying member method code with example usage: obj.test_decode() without return types