I am trying to create matrices for cosine and euclidean distances of a document. not too sure how I would approach this question. Any advice would be appreciated. Thanks.

*The function takes the termdoc matrix as the input and computes variables called "euclidean\_distance\_matrix" 
and "cosine\_distance\_matrix", which are matrices whose elements (i,j) store the Eulidean distance 
and the cosine distance between tweet i-th and i-jth.
You should store the distance matrices in numpy arrays for easier implementation in subsequent tasks*

The code to start me off is below.

```
def compute_distance_matrices(termdoc):

```