code: def test_clear(self):
      u = self.type2test([2, 3, 4])
      u.clear()
      self.assertEqual(u, [])
  
      u = self.type2test([])
      u.clear()
      self.assertEqual(u, [])
  
      u = self.type2test([])
      u.append(1)
      u.clear()
      u.append(2)
      self.assertEqual(u, [2])
  
      self.assertRaises(TypeError, u.clear, None)
  
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 19 for calling the CommonTest obj's underlying member method code with example usage: obj.test_clear() without return types