def METHOD_NAME(stack):
    for num in range(5):
        stack.push_int(num)
    _validate_stack_integers(stack, [0, 1, 2, 3, 4])
    stack.dup(1)
    _validate_stack_integers(stack, [0, 1, 2, 3, 4, 4])
    stack.dup(5)
    _validate_stack_integers(stack, [0, 1, 2, 3, 4, 4, 1])