Error seems to come after the section of code I wrote...?

I’m working on ‘Transfer_learning_with_MobileNet_v1’, Exercise 2.
I believe I have the user defined section of the code correct … but the error I’m getting doesn’t apply to any of the code I wrote.
My Code:

{moderator edit - solution code removed}

The first bits of the error:

AttributeError                            Traceback (most recent call last)
<ipython-input-20-11ffc7a7acb3> in <module>
----> 1 model2 = alpaca_model(IMG_SIZE, data_augmentation)

<ipython-input-19-c3ef45acbf9d> in alpaca_model(image_shape, data_augmentation)
     47     ### END CODE HERE
---> 49     model = tf.keras.Model(inputs, outputs)
     51     return model

/opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/engine/ in __new__(cls, *args, **kwargs)
    240       # Functional model
    241       from tensorflow.python.keras.engine import functional  # pylint: disable=g-import-not-at-top
--> 242       return functional.Functional(*args, **kwargs)
    243     else:
    244       return super(Model, cls).__new__(cls, *args, **kwargs)

Please post the entire error stack.
A screen capture image is preferred.

You have implemented the Dense layer incorrectly. Compare that to the other layers. Why does it not have an input?