code: def _run(self, S, T, ind=None):  # type: ignore
      if ind is None:
          res = sequence_insert_reference_implementation(S, T)
      elif isinstance(ind, int):
          res = sequence_insert_reference_implementation(S, T, [ind])  # type: ignore[arg-type]
      elif len(ind.shape) > 0:
          res = sequence_insert_reference_implementation(S, T, ind)
      elif len(ind.shape) == 0:
          res = sequence_insert_reference_implementation(S, T, [int(ind)])  # type: ignore[arg-type]
      else:
          res = sequence_insert_reference_implementation(S, T)
      return (res,)
  
imports: from typing import Any, List, Optional, Union
  import numpy
  from onnx.reference.op_run import OpRun
label_desc: Use image node_id 1 for calling the SequenceInsert obj's underlying member method code with example usage: obj._run(S, T, ind) and returns: res