code: def test_attrs_with_default():
      @attrs
      class WithDefault(object):
          def __init__(self, x, y=1):
              self.x = x
              self.y = y
  
      x_attr, y_attr = attr.fields(WithDefault)
      assert x_attr.name == "x"
      assert y_attr.name == "y"
      assert x_attr.default is attr.NOTHING
      assert y_attr.default == 1
  
      assert WithDefault(1) == WithDefault(1)
      assert WithDefault(1, 1) != WithDefault(1, 2)
  
imports: import attr
  import pytest
  from eli5.base_utils import attrs
label_desc: Use image node_id 1 for calling a global function with example usage: test_attrs_with_default() without return types