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 a `DatasetList`  can be compared to other objects.
docstr_tok: ["Test","that","a","`","DatasetList","`","can","be","compared","to","other","objects","."]
code: def test_equality(self, input_type, value):
      """Test that a `DatasetList`  can be compared to other objects."""
      ds = DatasetList(input_type(value))
  
      assert ds == input_type(value)
      assert ds != value.append("additional")
      for variable in ["string", 1, 1.0, {"0": 1}, True]:
          assert ds != variable
  
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 12 for calling the TestList obj's underlying member method code with example usage: obj.test_equality(input_type, value) without return types