class_docstr: Test bind and value initialization for ``DatasetList``, and test
  that indexing, slicing and delete behaviour matches the built in ``list``.
class_docstr_tok: ["Test","bind","and","value","initialization","for","``","DatasetList","``",",","and","test","that","indexing",",","slicing","and","delete","behaviour","matches","the","built","in","``","list","``","."]
docstr: Test that __delitem__ can remove an object from any index while
  preserving the list structure.
docstr_tok: ["Test","that","__delitem__","can","remove","an","object","from","any","index","while","preserving","the","list","structure","."]
code: def test_delitem(self, index):
      """Test that __delitem__ can remove an object from any index while
      preserving the list structure."""
      builtin = [0, 1, 2, {"a": 1}]
      ds = DatasetList(builtin)
  
      del ds[index]
      del builtin[index]
  
      assert ds == builtin
      assert len(ds) == len(builtin)
  
file_path: pennylane/tests/data/attributes/test_list.py
imports: from itertools import combinations
  import pytest
  from pennylane.data import DatasetList
label_desc: Use image node_id 8 for calling the TestList obj's underlying member method code with example usage: obj.test_delitem(index) without return types