class_docstr: Tests for the ScalarSymbolicOp class.
class_docstr_tok: ["Tests","for","the","ScalarSymbolicOp","class","."]
docstr: Tests the data property.
docstr_tok: ["Tests","the","data","property","."]
code: def test_data(self):
      """Tests the data property."""
      op = TempScalar(Operator(1.1, wires=[0]), 2.2)
      assert op.scalar == 2.2
      assert op.data == (2.2, 1.1)
  
      # check setting through ScalarSymbolicOp
      op.data = (
          3.3,
          4.4,
      )  # pylint:disable=attribute-defined-outside-init
      assert op.data == (3.3, 4.4)
      assert op.scalar == 3.3
      assert op.base.data == (4.4,)
  
      # check setting through base
      op.base.data = (5.5,)
      assert op.data == (3.3, 5.5)
      assert op.scalar == 3.3
      assert op.base.data == (5.5,)
  
imports: from copy import copy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.operation import Operator
  from pennylane.ops.op_math import SymbolicOp, ScalarSymbolicOp
  from pennylane.wires import Wires
label_desc: Use image node_id 2 for calling the TestScalarSymbolicOp obj's underlying member method code with example usage: obj.test_data() without return types