code: def test_init(self):
      for kw in "self", "other", "iterable":
          self.assertEqual(
              list(collections.UserDict(**{kw: 42}).items()), [(kw, 42)]
          )
      self.assertEqual(
          list(collections.UserDict({}, dict=42).items()),
          [("dict", 42)],
      )
      self.assertEqual(
          list(collections.UserDict({}, dict=None).items()),
          [("dict", None)],
      )
      self.assertEqual(
          list(collections.UserDict(dict={"a": 42}).items()),
          [("dict", {"a": 42})],
      )
      self.assertRaises(TypeError, collections.UserDict, 42)
      self.assertRaises(TypeError, collections.UserDict, (), ())
      self.assertRaises(TypeError, collections.UserDict.__init__)
  
file_path: cpython/Lib/test/test_userdict.py
imports: from test import mapping_tests, support
  import unittest
  import collections
label_desc: Use image node_id 2 for calling the UserDictTest obj's underlying member method code with example usage: obj.test_init() without return types