code: def test_eq_dataclass(self):
      from dataclasses import dataclass
  
      @dataclass
      class Foo:
          a: int
          b: str
  
      left = Foo(1, "b")
      right = Foo(1, "c")
      assert left == right
  
imports: import pytest
  from pytest import raises
label_desc: Use image node_id 16 for calling the TestSpecialisedExplanations obj's underlying member method code with example usage: obj.test_eq_dataclass() without return types