code: def test_data_is_tuple():
      """Check that the data property is a tuple."""
  
      class BadData(Operator):
          num_params = 1
  
          def __init__(self, x, wires):
              super().__init__(x, wires)
              self.data = [x]
  
      with pytest.raises(
          AssertionError, match=r"op.data must be a tuple"
      ):
          assert_valid(BadData(2.0, wires=0))
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.operation import Operator
  from pennylane.ops.functions import assert_valid
label_desc: Use image node_id 6 for calling a global function with example usage: test_data_is_tuple() without return types