Implement the mean squared error (MSE) loss from scratch using PyTorch tensor operations.
Given prediction tensor pred and target tensor target of the same shape, compute
and return the result as a Python float.
Use basic torch ops only (arithmetic, torch.mean, .item()). Do not use torch.nn loss modules.