code: def adjoint_ops(op: qml.operation.Operator) -> bool:
      """Specify whether or not an Operator is supported by adjoint differentiation."""
      return (
          op.num_params == 0 or op.num_params == 1 and op.has_generator
      )
  
imports: import pytest
  import pennylane
  from pennylane.devices.qubit import adjoint_jacobian, adjoint_jvp, adjoint_vjp
  from pennylane.tape import QuantumScript
  import pennylane.numpy
label_desc: Use image node_id 1 for calling a global function with example usage: adjoint_ops(op) and returns: unknown