code: def execute(cls, ctx, op):
      inputs, device_id, xp = as_same_device(
          [ctx[c.key] for c in op.inputs],
          device=op.device,
          ret_extra=True,
      )
  
      x = inputs[0]
      if len(inputs) > 1:
          bins = inputs[1]
      else:
          bins = op.bins
  
      with device(device_id):
          ctx[op.outputs[0].key] = xp.digitize(
              x, bins=bins, right=op.right
          )
  
imports: import numpy
  from ...None import opcodes
  from ...core import recursive_tile
  from ...serialization.serializables import KeyField, AnyField, BoolField
  from ...lib.sparse.core import get_array_module
  from ...utils import has_unknown_shape
  from ..array_utils import as_same_device, device
  from ..core import Tensor, TensorOrder
  from ..datasource import tensor
  from ..operands import TensorHasInput, TensorOperandMixin
label_desc: Use image node_id 7 for calling the TensorDigitize obj's underlying member method code with example usage: obj.execute(cls, ctx, op) without return types