code: def test_mutated_list(self):
      # List to coerce, `mylist` will mutate the first element
      obj = []
  
      class mylist(list):
          def __len__(self):
              obj[0] = [2, 3]  # replace with a different list.
              return super().__len__()
  
      obj.append([2, 3])
      obj.append(mylist([1, 2]))
      # Does not crash:
      np.array(obj)
  
imports: from itertools import permutations, product
  import pytest
  from pytest import param
  import numpy
  from numpy.core._rational_tests import rational
  from numpy.core._multiarray_umath import _discover_array_parameters
  from numpy.testing import assert_array_equal, assert_warns, IS_PYPY
label_desc: Use image node_id 2 for calling the TestBadSequences obj's underlying member method code with example usage: obj.test_mutated_list() and returns: super