code: def test_list_getslice(self):
      # Test PyList_GetSlice()
      getslice = _testcapi.list_getslice
      lst = [1, 2, 3]
  
      # empty
      self.assertEqual(getslice(lst, PY_SSIZE_T_MIN, 0), [])
      self.assertEqual(getslice(lst, -1, 0), [])
      self.assertEqual(getslice(lst, 3, PY_SSIZE_T_MAX), [])
  
      # slice
      self.assertEqual(getslice(lst, 1, 3), [2, 3])
  
      # whole
      self.assertEqual(getslice(lst, 0, len(lst)), lst)
      self.assertEqual(getslice(lst, 0, 100), lst)
      self.assertEqual(getslice(lst, -100, 100), lst)
  
      self.assertRaises(SystemError, getslice, (1, 2, 3), 0, 0)
      self.assertRaises(SystemError, getslice, "abc", 0, 0)
      self.assertRaises(SystemError, getslice, 42, 0, 0)
  
imports: import gc
  import weakref
  import unittest
  from test.support import import_helper
  from collections import UserList
label_desc: Use image node_id 12 for calling the CAPITest obj's underlying member method code with example usage: obj.test_list_getslice() without return types