docstr: Test PyUnicode_AsUTF32String()
docstr_tok: ["Test","PyUnicode_AsUTF32String","(",")"]
code: def test_asutf32string(self):
      """Test PyUnicode_AsUTF32String()"""
      asutf32string = _testcapi.unicode_asutf32string
  
      for s in ["abc", "\xa1\xa2", "\u4f60\u597d", "a\U0001f600"]:
          self.assertEqual(asutf32string(s), s.encode("utf-32"))
  
      self.assertRaises(UnicodeEncodeError, asutf32string, "\ud8ff")
      self.assertRaises(TypeError, asutf32string, b"abc")
      self.assertRaises(TypeError, asutf32string, [])
  
imports: import unittest
  import sys
  from test.support import import_helper
label_desc: Use image node_id 12 for calling the CAPITest obj's underlying member method code with example usage: obj.test_asutf32string() without return types