code: def execute(cls, ctx, op: "TensorInsert"):
      inp = ctx[op.input.key]
      index_obj = (
          ctx[op.index_obj.key]
          if hasattr(op.index_obj, "key")
          else op.index_obj
      )
      values = (
          ctx[op.values.key] if hasattr(op.values, "key") else op.values
      )
      if op.range_on_axis is None:
          ctx[op.outputs[0].key] = np.insert(
              inp, index_obj, values, axis=op.axis
          )
      else:
          if isinstance(index_obj, slice):
              index_obj = np.arange(
                  index_obj.step or 0,
                  index_obj.stop,
                  index_obj.step or 1,
              )
          else:
              index_obj = np.array(index_obj)
          values = np.asarray(values)
  
          part_index = [
              i
              for i, idx in enumerate(index_obj)
              if (
                  (idx >= op.range_on_axis[0])
                  and idx < op.range_on_axis[1]
              )
          ]
          if (
              (values.ndim > 0)
              and len(index_obj) == len(values)
              and (values[0].ndim > 0 or inp.ndim == 1)
          ):
              ctx[op.outputs[0].key] = np.insert(
                  inp,
                  index_obj[part_index] - op.range_on_axis[0],
                  values[part_index],
                  axis=op.axis,
              )
          else:
              ctx[op.outputs[0].key] = np.insert(
                  inp,
                  index_obj[part_index] - op.range_on_axis[0],
                  values,
                  axis=op.axis,
              )
  
imports: import numpy
  from ...None import opcodes
  from ...core import ENTITY_TYPE, recursive_tile
  from ...serialization.serializables import Int32Field, TupleField, AnyField, KeyField
  from ...utils import has_unknown_shape
  from ..datasource import tensor
  from ..operands import TensorHasInput, TensorOperandMixin
  from ..utils import filter_inputs, validate_axis, calc_object_length
label_desc: Use image node_id 8 for calling the TensorInsert obj's underlying member method code with example usage: obj.execute(cls, ctx, op) without return types