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 insert on a DatasetList works exactly like inserting
  on a built-in list, including accepting out-of range indexes.
docstr_tok: ["Test","that","insert","on","a","DatasetList","works","exactly","like","inserting","on","a","built-in","list",",","including","accepting","out-of","range","indexes","."]
code: def test_insert(self, index):
      """Test that insert on a DatasetList works exactly like inserting
      on a built-in list, including accepting out-of range indexes."""
      builtin = [0, 1, 2, {"a": 1}]
      ds = DatasetList(builtin)
  
      builtin.insert(index, 10)
      ds.insert(index, 10)
  
      assert ds == 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 7 for calling the TestList obj's underlying member method code with example usage: obj.test_insert(index) without return types