class_docstr: Unittests for the dot function when ``pauli=False``.
docstr: Test that `dot` casts all `Tensor` objects to `Prod`.
docstr_tok: ["Test","that","`","dot","`","casts","all","`","Tensor","`","objects","to","`","Prod","`","."]
code: def test_cast_tensor_to_prod(self):
      """Test that `dot` casts all `Tensor` objects to `Prod`."""
      result = qml.dot(
          coeffs=[1, 1, 1],
          ops=[
              qml.PauliX(0) @ qml.PauliY(0),
              qml.PauliX(0) @ qml.PauliY(0),
              qml.PauliX(0) @ qml.PauliY(0),
          ],
      )
      assert isinstance(result, Sum)
      for op in result:
          assert isinstance(op, Prod)
  
imports: import pytest
  import pennylane
  from pennylane.ops import Hamiltonian, Prod, SProd, Sum
  from pennylane.pauli.pauli_arithmetic import PauliSentence
label_desc: Use image node_id 3 for calling the TestDotSum obj's underlying member method code with example usage: obj.test_cast_tensor_to_prod() without return types