code: def test_index_empty(self):
      index = self.text.index
  
      for dex in (
          -1.0,
          0.3,
          "1.-1",
          "1.0",
          "1.0 lineend",
          "1.end",
          "1.33",
          "insert",
      ):
          self.assertEqual(index(dex), "1.0")
  
      for dex in "end", 2.0, "2.1", "33.44":
          self.assertEqual(index(dex), "2.0")
  
imports: import unittest
  from test.test_support import requires
  from _tkinter import TclError
label_desc: Use image node_id 3 for calling the TextTest obj's underlying member method code with example usage: obj.test_index_empty() without return types