class_docstr: Tests for the sum_expand transform
docstr: Tests that the sum_expand transform returns the correct value
  if we switch grouping off
docstr_tok: ["Tests","that","the","sum_expand","transform","returns","the","correct","value","if","we","switch","grouping","off"]
code: def test_sums_no_grouping(self, qscript, output):
      """Tests that the sum_expand transform returns the correct value
      if we switch grouping off"""
      processed, _ = dev.preprocess()[0]([qscript])
      assert len(processed) == 1
      qscript = processed[0]
      tapes, fn = sum_expand(qscript, group=False)
      results = dev.execute(tapes)
      expval = fn(results)
  
      assert all(
          qml.math.allclose(o, e) for o, e in zip(output, expval)
      )
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.queuing import AnnotatedQueue
  from pennylane.tape import QuantumScript
  from pennylane.transforms import hamiltonian_expand, sum_expand
label_desc: Use image node_id 4 for calling the TestSumExpand obj's underlying member method code with example usage: obj.test_sums_no_grouping(qscript, output) without return types