code: def test_check(self):
      # Test PyList_Check()
      check = _testcapi.list_check
      self.assertTrue(check([1, 2]))
      self.assertTrue(check([]))
      self.assertTrue(check(ListSubclass([1, 2])))
      self.assertFalse(check({1: 2}))
      self.assertFalse(check((1, 2)))
      self.assertFalse(check(42))
      self.assertFalse(check(object()))
  
imports: import gc
  import weakref
  import unittest
  from test.support import import_helper
  from collections import UserList
label_desc: Use image node_id 1 for calling the CAPITest obj's underlying member method code with example usage: obj.test_check() without return types