code: def test_conditional_label(op_class):
      """Test that the label for conditional oeprators is correct."""
      base_op = op_class(wires=range(op_class.num_wires))
  
      # Need to use queue because `qml.cond` doesn't return `Conditional` operators
      with qml.queuing.AnnotatedQueue() as q:
          m0 = qml.measure(0)
          qml.cond(m0, op_class)(wires=range(op_class.num_wires))
  
      cond_op = q.queue[1]
  
      assert base_op.label() == cond_op.label()
  
file_path: pennylane/tests/ops/op_math/test_condition.py
imports: import pytest
  import pennylane
  from pennylane.ops.op_math.condition import ConditionalTransformError
label_desc: Use image node_id 1 for calling a global function with example usage: test_conditional_label(op_class) without return types