code: def test_eq_with_inheritance_for_mixed_field():
      class SubField(Field):
          __slots__ = ["a"]
  
          def __init__(self, a):
              self.a = a
  
      class SubSubField(SubField):
          def __init__(self, a, b):
              super().__init__(a)
              self.b = b
  
      assert SubField(1) == SubField(1)
      assert SubField(1) != SubField(2)
  
      assert SubSubField(1, 2) == SubSubField(1, 2)
      assert SubSubField(1, 2) != SubSubField(1, 1)
      assert SubSubField(1, 2) != SubSubField(2, 2)
  
imports: from allennlp.data.fields import Field
label_desc: Use image node_id 3 for calling a global function with example usage: test_eq_with_inheritance_for_mixed_field() without return types