code: def test_dict_getitemref(self):
      getitem = _testcapi.dict_getitemref
      dct = {"a": 1, "\U0001f40d": 2}
      self.assertEqual(getitem(dct, "a"), 1)
      self.assertIs(getitem(dct, "b"), KeyError)
      self.assertEqual(getitem(dct, "\U0001f40d"), 2)
  
      dct2 = DictSubclass(dct)
      self.assertEqual(getitem(dct2, "a"), 1)
      self.assertIs(getitem(dct2, "b"), KeyError)
  
      self.assertRaises(SystemError, getitem, 42, "a")
      self.assertRaises(TypeError, getitem, {}, [])  # unhashable
      self.assertRaises(SystemError, getitem, [], 1)
      self.assertRaises(SystemError, getitem, [], "a")
  
imports: import unittest
  from collections import OrderedDict, UserDict
  from types import MappingProxyType
  from test import support
  import _testcapi
label_desc: Use image node_id 10 for calling the CAPITest obj's underlying member method code with example usage: obj.test_dict_getitemref() without return types