code: def test_adjoint_method(op):
      """Assert that ops that are not their own inverses do not have a defined adjoint."""
      assert not op.has_adjoint
  
      with pytest.raises(qml.operation.AdjointUndefinedError):
          op.adjoint()
  
imports: import copy
  import pytest
  import numpy
  from gate_data import TSHIFT, TCLOCK, TADD, TSWAP, TH
  import pennylane
  from pennylane.wires import Wires
label_desc: Use image node_id 3 for calling a global function with example usage: test_adjoint_method(op) without return types