n is used in the loop:
for i in range(n):

to create multiple layers.
As you can see in the final model blocks will contain 14 Bottleneck modules, which corresponds to the values of n in the setting (1+2+1+3+1+6=14).