code: def test_main(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)
      self.assertEqual(index_store.getval(0), "a")
      self.assertEqual(index_store.getval(1), "b")
      self.assertTrue("a" in index_store)
      self.assertFalse("c" in index_store)
      self.assertEqual(set(index_store.values()), set(["a", "b"]))
      self.assertFalse(0 in index_store)
      self.assertTrue(index_store.hasidx(0))
      self.assertFalse(index_store.hasidx(2))
      self.assertEqual(index_store.getnumvals(), 2)
      self.assertEqual(list(index_store.items()), [(0, "a"), (1, "b")])
  
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 1 for calling the TestIndexStore obj's underlying member method code with example usage: obj.test_main() without return types