Here's the completed code:
```
# Import TfidfModel
from gensim.models import TfidfModel
# Create a new TfidfModel using the corpus: tfidf
tfidf = TfidfModel(corpus)
# Calculate the tfidf weights of doc: tfidf_weights
tfidf_weights = tfidf[doc]
# Print the first five weights
print(tfidf_weights[:5])
```
The code imports `TfidfModel` from `gensim.models` and creates a new instance called `tfidf` using `corpus`. It then calculates the tf-idf weights of `doc` by passing `[doc]` to `tfidf` and assigns it to `