docstr: Test PyUnicode_GetLength()
docstr_tok: ["Test","PyUnicode_GetLength","(",")"]
code: def test_getlength(self):
      """Test PyUnicode_GetLength()"""
      from _testcapi import unicode_getlength as getlength
  
      for s in [
          "abc",
          "\xa1\xa2",
          "\u4f60\u597d",
          "a\U0001f600",
          "a\ud800b\udfffc",
          "\ud834\udd1e",
      ]:
          self.assertEqual(getlength(s), len(s))
  
      self.assertRaises(TypeError, getlength, b"abc")
      self.assertRaises(TypeError, getlength, [])
  
imports: import unittest
  import sys
  from test import support
  from test.support import import_helper
label_desc: Use image node_id 11 for calling the CAPITest obj's underlying member method code with example usage: obj.test_getlength() without return types