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 __setitem__ raises an IndexError when given an index
  that is out of range of the list.
docstr_tok: ["Test","that","__setitem__","raises","an","IndexError","when","given","an","index","that","is","out","of","range","of","the","list","."]
code: def test_setitem_out_of_range(self, index):
      """Test that __setitem__ raises an IndexError when given an index
      that is out of range of the list."""
      ds = DatasetList([0])
  
      with pytest.raises(IndexError):
          ds[index] = 1
  
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 10 for calling the TestList obj's underlying member method code with example usage: obj.test_setitem_out_of_range(index) without return types