def METHOD_NAME():
    def setdec(func):
        setattr(func, 'SPECIAL_ATTR', {'a': 1, 'b': 2})
        return func
    @setdec
    def f():
        return 1
    assert hasattr(f, 'SPECIAL_ATTR')
    assert getattr(f, 'SPECIAL_ATTR') == {'a': 1, 'b': 2}
    class MyClass(object):
        @setdec
        def f(self):
            return 1
    m = MyClass()
    assert hasattr(m.f, 'SPECIAL_ATTR')
    assert getattr(m.f, 'SPECIAL_ATTR') == {'a': 1, 'b': 2}