code: def test_dict_contains_string(self):
      contains_string = _testcapi.dict_containsstring
      dct = {"a": 1, "\U0001f40d": 2}
      self.assertTrue(contains_string(dct, b"a"))
      self.assertFalse(contains_string(dct, b"b"))
      self.assertTrue(contains_string(dct, "\U0001f40d".encode()))
      self.assertRaises(
          UnicodeDecodeError, contains_string, dct, INVALID_UTF8
      )
  
      dct2 = DictSubclass(dct)
      self.assertTrue(contains_string(dct2, b"a"))
      self.assertFalse(contains_string(dct2, b"b"))
  
imports: import unittest
  from collections import OrderedDict, UserDict
  from types import MappingProxyType
  from test import support
  import _testcapi
label_desc: Use image node_id 14 for calling the CAPITest obj's underlying member method code with example usage: obj.test_dict_contains_string() without return types