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 slicing a DatasetList works exactly like slicing
  a built-in list.
docstr_tok: ["Test","that","slicing","a","DatasetList","works","exactly","like","slicing","a","built-in","list","."]
code: def test_slice(self, slc):
      """Test that slicing a DatasetList works exactly like slicing
      a built-in list."""
      builtin = [0, 1, 2]
      ds = DatasetList(builtin)
      assert builtin[slc] == ds[slc]
  
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 4 for calling the TestList obj's underlying member method code with example usage: obj.test_slice(slc) without return types