In a separate pull request, can you pull this part out into a separate function?

```
def from_file(npz_file):
  numpy_array = np.load(...)
  return from_numpy(numpy_array)
```