#dekorowanie

def g(x):
    print(x)

def decorator(f):
    def _f(*args, **kwargs):
        print('-->')
        f(*args, **kwargs)
        print('<--')
    return _f

decorator(g)("text")


def decorator2(a, b):
    def _decorator(f):
        def _f(*args, **kwargs):
            print(a)
            f(*args, **kwargs)
            print(b)
        return _f
    return _decorator


e34cccc558678a96d8350cf1b4208e92194c007d
<mask token>


def decorator2(a, b):

    def _decorator(f):

        def _f(*args, **kwargs):
            print(a)
            f(*args, **kwargs)
            print(b)
        return _f
    return _decorator

def g(x):
    print(x)


<mask token>


def decorator2(a, b):

    def _decorator(f):

        def _f(*args, **kwargs):
            print(a)
            f(*args, **kwargs)
            print(b)
        return _f
    return _decorator

def g(x):
    print(x)


def decorator(f):

    def _f(*args, **kwargs):
        print('-->')
        f(*args, **kwargs)
        print('<--')
    return _f


<mask token>


def decorator2(a, b):

    def _decorator(f):

        def _f(*args, **kwargs):
            print(a)
            f(*args, **kwargs)
            print(b)
        return _f
    return _decorator

def g(x):
    print(x)


def decorator(f):

    def _f(*args, **kwargs):
        print('-->')
        f(*args, **kwargs)
        print('<--')
    return _f


decorator(g)('text')


def decorator2(a, b):

    def _decorator(f):

        def _f(*args, **kwargs):
            print(a)
            f(*args, **kwargs)
            print(b)
        return _f
    return _decorator

#dekorowanie

def g(x):
    print(x)

def decorator(f):
    def _f(*args, **kwargs):
        print('-->')
        f(*args, **kwargs)
        print('<--')
    return _f

decorator(g)("text")


def decorator2(a, b):
    def _decorator(f):
        def _f(*args, **kwargs):
            print(a)
            f(*args, **kwargs)
            print(b)
        return _f
    return _decorator

