code: def test_list_extend(self):
      # Test PyList_Extend()
      list_extend = _testcapi.list_extend
  
      for other_type in (list, tuple, str, iter):
          lst = list("ab")
          arg = other_type("def")
          self.assertEqual(list_extend(lst, arg), 0)
          self.assertEqual(lst, list("abdef"))
  
      # PyList_Extend(lst, lst)
      lst = list("abc")
      self.assertEqual(list_extend(lst, lst), 0)
      self.assertEqual(lst, list("abcabc"))
  
      self.assertRaises(TypeError, list_extend, [], object())
      self.assertRaises(SystemError, list_extend, (), list("abc"))
  
imports: import gc
  import weakref
  import unittest
  from test.support import import_helper
  from collections import UserList
label_desc: Use image node_id 18 for calling the CAPITest obj's underlying member method code with example usage: obj.test_list_extend() without return types