code: def execute(cls, ctx, op):
      (x,), device_id, xp = as_same_device(
          [ctx[c.key] for c in op.inputs],
          device=op.device,
          ret_extra=True,
      )
  
      axis1, axis2 = op.axis1, op.axis2
      with device(device_id):
          ctx[op.outputs[0].key] = xp.swapaxes(x, axis1, axis2)
  
imports: from ...None import opcodes
  from ...serialization.serializables import KeyField, Int32Field
  from ..array_utils import as_same_device, device
  from ..core import TensorOrder
  from ..datasource import tensor
  from ..operands import TensorHasInput, TensorOperandMixin
  from ..utils import validate_axis, reverse_order
label_desc: Use image node_id 9 for calling the TensorSwapAxes obj's underlying member method code with example usage: obj.execute(cls, ctx, op) without return types