code: def test_setslice_cint(self):
      a = (c_int * 100)(*range(1100, 1200))
      b = list(range(1100, 1200))
  
      a[32:47] = list(range(32, 47))
      self.assertEqual(a[32:47], list(range(32, 47)))
      a[32:47] = range(132, 147)
      self.assertEqual(a[32:47:], list(range(132, 147)))
      a[46:31:-1] = range(232, 247)
      self.assertEqual(a[32:47:1], list(range(246, 231, -1)))
  
      a[32:47] = range(1132, 1147)
      self.assertEqual(a[:], b)
      a[32:47:7] = range(3)
      b[32:47:7] = range(3)
      self.assertEqual(a[:], b)
      a[33::-3] = range(12)
      b[33::-3] = range(12)
      self.assertEqual(a[:], b)
  
      # TypeError: int expected instead of str instance
      with self.assertRaises(TypeError):
          a[:5] = "abcde"
  
      # TypeError: int expected instead of str instance
      with self.assertRaises(TypeError):
          a[:5] = ["a", "b", "c", "d", "e"]
  
      # TypeError: int expected instead of float instance
      with self.assertRaises(TypeError):
          a[:5] = [1, 2, 3, 4, 3.14]
  
      # ValueError: Can only assign sequence of same size
      with self.assertRaises(ValueError):
          a[:5] = range(32)
  
file_path: cpython/Lib/test/test_ctypes/test_slicing.py
imports: import _ctypes_test
  import unittest
  from ctypes import CDLL, POINTER, sizeof, c_byte, c_short, c_int, c_long, c_char, c_wchar, c_char_p
label_desc: Use image node_id 2 for calling the SlicesTestCase obj's underlying member method code with example usage: obj.test_setslice_cint() without return types