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 DatasetList raises an IndexError if given an
  index less than its negative length, or greater than or equal
  to its length.
docstr_tok: ["Test","that","DatasetList","raises","an","IndexError","if","given","an","index","less","than","its","negative","length",",","or","greater","than","or","equal","to","its","length","."]
code: def test_indexing_out_of_range(self, index):
      """Test that DatasetList raises an IndexError if given an
      index less than its negative length, or greater than or equal
      to its length.
      """
      ds = DatasetList([1, 2, 3])
      with pytest.raises(IndexError):
          _ = ds[index]
  
      with pytest.raises(IndexError):
          del ds[index]
  
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 6 for calling the TestList obj's underlying member method code with example usage: obj.test_indexing_out_of_range(index) without return types