code: def test_eq_with_inheritance_for_non_slots_field():
      class SubField(Field):
          def __init__(self, a):
              self.a = a
  
      assert SubField(1) == SubField(1)
      assert SubField(1) != SubField(2)
  
imports: from allennlp.data.fields import Field
label_desc: Use image node_id 2 for calling a global function with example usage: test_eq_with_inheritance_for_non_slots_field() without return types