Each function returns a tuple of (actual, expected) for testing.
"""Create a LocalTensor from per-rank tensors.