def get_mnist(data_type="<STR_LIT:train>", location="<STR_LIT>"):
X, Y = mnist.read_data_sets(location, data_type)<EOL>return X, Y + <NUM_LIT:1><EOL>
Get mnist dataset with features and label as ndarray.
Data would be downloaded automatically if it doesn't present at the specific location.

:param data_type: "train" for training data and "test" for testing data.
:param location: Location to store mnist dataset.
:return: (features: ndarray, label: ndarray)