docstr: Test PyUnicode_SplitLines()
docstr_tok: ["Test","PyUnicode_SplitLines","(",")"]
code: def test_splitlines(self):
      """Test PyUnicode_SplitLines()"""
      from _testcapi import unicode_splitlines as splitlines
  
      self.assertEqual(splitlines("a\nb\rc\r\nd"), ["a", "b", "c", "d"])
      self.assertEqual(
          splitlines("a\nb\rc\r\nd", True), ["a\n", "b\r", "c\r\n", "d"]
      )
      self.assertEqual(
          splitlines("a\x85b\u2028c\u2029d"), ["a", "b", "c", "d"]
      )
      self.assertEqual(
          splitlines("a\x85b\u2028c\u2029d", True),
          ["a\x85", "b\u2028", "c\u2029", "d"],
      )
      self.assertEqual(splitlines("а\nб\rв\r\nг"), ["а", "б", "в", "г"])
  
      self.assertRaises(TypeError, splitlines, b"a\nb\rc\r\nd")
  
imports: import unittest
  import sys
  from test import support
  from test.support import import_helper
label_desc: Use image node_id 32 for calling the CAPITest obj's underlying member method code with example usage: obj.test_splitlines() without return types