class_docstr: Test addition and inclusion of operations and subclasses in attributes.
docstr: Test that we can ask if a tensor is in the attribute.
docstr_tok: ["Test","that","we","can","ask","if","a","tensor","is","in","the","attribute","."]
code: def test_tensor_check(self):
      """Test that we can ask if a tensor is in the attribute."""
      assert (
          not qml.PauliX(wires=0) @ qml.PauliZ(wires=1) in new_attribute
      )
  
imports: import itertools
  import pytest
  import numpy
  from scipy.stats import unitary_group
  import pennylane
  from pennylane.ops.qubit.attributes import Attribute, has_unitary_generator
  from pennylane.operation import AnyWires
label_desc: Use image node_id 8 for calling the TestAttribute obj's underlying member method code with example usage: obj.test_tensor_check() without return types