code: def test_delitem(self):
      a = self.type2test([0, 1])
      del a[1]
      self.assertEqual(a, [0])
      del a[0]
      self.assertEqual(a, [])
  
      a = self.type2test([0, 1])
      del a[-2]
      self.assertEqual(a, [1])
      del a[-1]
      self.assertEqual(a, [])
  
      a = self.type2test([0, 1])
      self.assertRaises(IndexError, a.__delitem__, -3)
      self.assertRaises(IndexError, a.__delitem__, 2)
  
      a = self.type2test([])
      self.assertRaises(IndexError, a.__delitem__, 0)
  
      self.assertRaises(TypeError, a.__delitem__)
  
imports: import sys
  from functools import cmp_to_key
  from test import seq_tests
  from test.support import ALWAYS_EQ, NEVER_EQ, Py_C_RECURSION_LIMIT
label_desc: Use image node_id 9 for calling the CommonTest obj's underlying member method code with example usage: obj.test_delitem() without return types