code: def test_list_size(self):
      # Test PyList_Size()
      size = _testcapi.list_size
      self.assertEqual(size([1, 2]), 2)
      self.assertEqual(size(ListSubclass([1, 2])), 2)
      self.assertRaises(SystemError, size, UserList())
      self.assertRaises(SystemError, size, {})
      self.assertRaises(SystemError, size, 23)
      self.assertRaises(SystemError, size, object())
  
imports: import gc
  import weakref
  import unittest
  from test.support import import_helper
  from collections import UserList
label_desc: Use image node_id 4 for calling the CAPITest obj's underlying member method code with example usage: obj.test_list_size() without return types