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