code: def test_clear(self):
      d = self._full_mapping({1: 1, 2: 2, 3: 3})
      d.clear()
      self.assertEqual(d, {})
  
      self.assertRaises(TypeError, d.clear, None)
  
imports: import unittest
  import collections
  from test.support import Py_C_RECURSION_LIMIT
label_desc: Use image node_id 9 for calling the TestMappingProtocol obj's underlying member method code with example usage: obj.test_clear() without return types