docstr: Test PyUnicode_AsUnicodeEscapeString()
docstr_tok: ["Test","PyUnicode_AsUnicodeEscapeString","(",")"]
code: def test_asunicodeescapestring(self):
      """Test PyUnicode_AsUnicodeEscapeString()"""
      asunicodeescapestring = _testcapi.unicode_asunicodeescapestring
  
      self.assertEqual(asunicodeescapestring("abc"), b"abc")
      self.assertEqual(
          asunicodeescapestring("\t\n\r\v\f\0\\"),
          rb"\t\n\r\x0b\x0c\x00\\",
      )
      self.assertEqual(asunicodeescapestring("\xa1\xa2"), rb"\xa1\xa2")
      self.assertEqual(
          asunicodeescapestring("\u4f60\u597d"), rb"\u4f60\u597d"
      )
      self.assertEqual(
          asunicodeescapestring("\U0001f600"), rb"\U0001f600"
      )
  
      self.assertRaises(TypeError, asunicodeescapestring, b"abc")
      self.assertRaises(TypeError, asunicodeescapestring, [])
  
imports: import unittest
  import sys
  from test.support import import_helper
label_desc: Use image node_id 20 for calling the CAPITest obj's underlying member method code with example usage: obj.test_asunicodeescapestring() without return types