code: def test_bind_mutating_list(self):
      # Issue41662: Crash when mutate a list of parameters during iteration.
      class X:
          def __conform__(self, protocol):
              parameters.clear()
              return "..."
  
      parameters = [X(), 0]
      with memory_database(detect_types=sqlite.PARSE_DECLTYPES) as con:
          con.execute("create table foo(bar X, baz integer)")
          # Should not crash
          with self.assertRaises(IndexError):
              con.execute(
                  "insert into foo(bar, baz) values (?, ?)", parameters
              )
  
imports: import datetime
  import unittest
  import sqlite3
  import weakref
  import functools
  from test import support
  from unittest.mock import patch
  from .util import memory_database, cx_limit
  from .util import MemoryDatabaseMixin
label_desc: Use image node_id 10 for calling the RegressionTests obj's underlying member method code with example usage: obj.test_bind_mutating_list() and returns: str