TensorNetwork: A Library for Physics and Machine Learning