def METHOD_NAME(self, index):
    """Test that __setitem__ can replace an object at any index while preserving
    the list structure."""
    builtin = [0, 1, 2, {"a": 1}]
    ds = DatasetList(builtin)
    ds[index] = "test"
    builtin[index] = "test"
    assert ds == builtin
    assert len(ds) == len(builtin)