<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
Let X be a M x N matrix. Denote xi the i-th column of X. I want to create a 3 dimensional N x M x M array consisting of M x M matrices xi.dot(xi.T).
<ASSISTANT_TASK:>
Python Code:
import numpy as np
X = np.random.randint(2, 10, (5, 6))
result = X.T[:, :, None] * X.T[:, None]
<END_TASK>