class_docstr: Unittests for the dot function when ``pauli=False``.
docstr: Test that the dot function returns a SProd operator when only one operator is input.
docstr_tok: ["Test","that","the","dot","function","returns","a","SProd","operator","when","only","one","operator","is","input","."]
code: def test_dot_returns_sprod(self):
      """Test that the dot function returns a SProd operator when only one operator is input."""
      O = qml.dot(coeffs=[2.0], ops=[qml.PauliX(0)])
      assert isinstance(O, SProd)
      assert O.scalar == 2
  
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 2 for calling the TestDotSum obj's underlying member method code with example usage: obj.test_dot_returns_sprod() without return types