Form a single, einsum-like contraction, that is contract
tensor a and be to form out via a contraction defined
by the first argument string, e.g. “ab,bc->ac”
Note: The contract function is deprecated. It will disappear in 0.18.