def print_result(func_to_decorate):

    def decorated_func(*args):
        print(func_to_decorate.__name__)
        arg = func_to_decorate(*args)
        if type(arg) == list:
            for i in arg:
                print('{}'.format(i))
        elif type(arg) == dict:
            for key in arg:
                print('{} = {}'.format(key, arg[key]))
        else:
            print(arg)
        return arg
    return decorated_func


@print_result
def test_1():
    return 1


@print_result
def test_2():
    return 'iu5'


@print_result
def test_3():
    return {'a': 1, 'b': 2}


@print_result
def test_4():
    return [1, 2]


if __name__ == '__main__':
    test_1()
    print('\n')
    test_2()
    print('\n')
    test_3()
    print('\n')
    test_4()

40ecee6d0a4775c20071a6cf506e7769b33d8add
def print_result(func_to_decorate):

    def decorated_func(*args):
        print(func_to_decorate.__name__)
        arg = func_to_decorate(*args)
        if type(arg) == list:
            for i in arg:
                print('{}'.format(i))
        elif type(arg) == dict:
            for key in arg:
                print('{} = {}'.format(key, arg[key]))
        else:
            print(arg)
        return arg
    return decorated_func


@print_result
def test_1():
    return 1


<mask token>


@print_result
def test_3():
    return {'a': 1, 'b': 2}


<mask token>

def print_result(func_to_decorate):

    def decorated_func(*args):
        print(func_to_decorate.__name__)
        arg = func_to_decorate(*args)
        if type(arg) == list:
            for i in arg:
                print('{}'.format(i))
        elif type(arg) == dict:
            for key in arg:
                print('{} = {}'.format(key, arg[key]))
        else:
            print(arg)
        return arg
    return decorated_func


@print_result
def test_1():
    return 1


@print_result
def test_2():
    return 'iu5'


@print_result
def test_3():
    return {'a': 1, 'b': 2}


<mask token>

def print_result(func_to_decorate):

    def decorated_func(*args):
        print(func_to_decorate.__name__)
        arg = func_to_decorate(*args)
        if type(arg) == list:
            for i in arg:
                print('{}'.format(i))
        elif type(arg) == dict:
            for key in arg:
                print('{} = {}'.format(key, arg[key]))
        else:
            print(arg)
        return arg
    return decorated_func


@print_result
def test_1():
    return 1


@print_result
def test_2():
    return 'iu5'


@print_result
def test_3():
    return {'a': 1, 'b': 2}


@print_result
def test_4():
    return [1, 2]


<mask token>

def print_result(func_to_decorate):

    def decorated_func(*args):
        print(func_to_decorate.__name__)
        arg = func_to_decorate(*args)
        if type(arg) == list:
            for i in arg:
                print('{}'.format(i))
        elif type(arg) == dict:
            for key in arg:
                print('{} = {}'.format(key, arg[key]))
        else:
            print(arg)
        return arg
    return decorated_func


@print_result
def test_1():
    return 1


@print_result
def test_2():
    return 'iu5'


@print_result
def test_3():
    return {'a': 1, 'b': 2}


@print_result
def test_4():
    return [1, 2]


if __name__ == '__main__':
    test_1()
    print('\n')
    test_2()
    print('\n')
    test_3()
    print('\n')
    test_4()
