Added typing function for numpy.tensordot().