code: def test_getidxstrict(self):
      index_store = IndexStore()
      self.assertEqual(index_store.getidx("a"), 0)
      self.assertEqual(index_store.getidx("b"), 1)
      self.assertEqual(index_store.getidx("a"), 0)
      with self.assertRaises(KeyError):
          index_store.getidxstrict("c")
  
file_path: scattertext/scattertext/test/test_indexStore.py
imports: from unittest import TestCase
  from scattertext.indexstore.IndexStore import IndexStore
label_desc: Use image node_id 2 for calling the TestIndexStore obj's underlying member method code with example usage: obj.test_getidxstrict() without return types