docstr: Test that `DatasetDict` can be compared to other objects.
docstr_tok: ["Test","that","`","DatasetDict","`","can","be","compared","to","other","objects","."]
code: def test_equality(self, value):
      """Test that `DatasetDict` can be compared to other objects."""
      dset_dict = DatasetDict(value)
      dset_dict2 = DatasetDict(value)
  
      assert dset_dict == dset_dict2
      assert dset_dict == value
  
      assert dset_dict != []
      dset_dict2["additional"] = "additional"
      assert dset_dict != dset_dict2
  
file_path: pennylane/tests/data/attributes/test_dict.py
imports: import pytest
  from pennylane.data.attributes import DatasetDict
label_desc: Use image node_id 7 for calling the TestDatasetDict obj's underlying member method code with example usage: obj.test_equality(value) without return types