code: def test_index_lookup(self):
      fmt = string.Formatter()
      lookup = ["eggs", "and", "spam"]
      self.assertEqual(fmt.format("{0[2]}{0[0]}", lookup), "spameggs")
      with self.assertRaises(IndexError):
          fmt.format("{0[2]}{0[0]}", [])
      with self.assertRaises(KeyError):
          fmt.format("{0[2]}{0[0]}", {})
  
imports: import unittest
  import string
  from string import Template
label_desc: Use image node_id 8 for calling the ModuleTest obj's underlying member method code with example usage: obj.test_index_lookup() without return types