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,
      )
  
      axes = op.axes
      with device(device_id):
          ctx[op.outputs[0].key] = xp.transpose(x, axes or None)
  
imports: import numpy
  from ...None import opcodes
  from ...serialization.serializables import FieldTypes, KeyField, ListField
  from ..operands import TensorHasInput, TensorOperandMixin
  from ..datasource import tensor
  from ..array_utils import as_same_device, device
  from ..utils import reverse_order
  from ..core import TensorOrder
label_desc: Use image node_id 8 for calling the TensorTranspose obj's underlying member method code with example usage: obj.execute(cls, ctx, op) without return types