Preheat oven to 350 degrees.
Layer 1: Mix the flour, butter and walnuts/pecans together.
Press into 9x9 pan and bake for 15 minutes at 350 degrees, cool it well.
Layer 2: Mix the cream cheese, powdered sugar and 1 cup of the whipped topping, pour over cooled crust.
Layer 3: Mix the milk, pudding mix, pumpkin puree, pumpkin spice and 1 cup whipped topping until it becomes smooth.
Put it over the cream cheese layer.
Layer 4: On the top, mix 1 cup whipped topping and sprinkle with walnuts/pecans.
Cool for the minimum of 3 hours.