code: def test_dictproxy_new(self):
      dictproxy_new = _testcapi.dictproxy_new
      for dct in {1: 2}, OrderedDict({1: 2}), UserDict({1: 2}):
          proxy = dictproxy_new(dct)
          self.assertIs(type(proxy), MappingProxyType)
          self.assertEqual(proxy, dct)
          with self.assertRaises(TypeError):
              proxy[1] = 3
          self.assertEqual(proxy[1], 2)
          dct[1] = 4
          self.assertEqual(proxy[1], 4)
  
      self.assertRaises(TypeError, dictproxy_new, [])
      self.assertRaises(TypeError, dictproxy_new, 42)
  
imports: import unittest
  from collections import OrderedDict, UserDict
  from types import MappingProxyType
  from test import support
  import _testcapi
label_desc: Use image node_id 4 for calling the CAPITest obj's underlying member method code with example usage: obj.test_dictproxy_new() without return types