code: def sequence_insert_reference_implementation(
      sequence: List[Any],
      tensor: np.ndarray,
      position: np.ndarray = None,
  ) -> List[Any]:
      # make a copy of input sequence
      seq = list(sequence)
      if position is not None:
          # In these cases, insert_position will be between [-len(sequence), len(sequence)]
          # The position argument will be in the format np.array([pos_index])
          insert_position = position[0]
          seq.insert(insert_position, tensor)
      else:
          # Default position of insertion is at the end of the sequence.
          seq.append(tensor)
      return seq
  
file_path: onnx/onnx/backend/test/case/node/sequenceinsert.py
imports: from typing import Any, List
  import numpy
  import onnx
  from onnx.backend.test.case.base import Base
  from onnx.backend.test.case.node import expect
label_desc: Use image node_id 1 for calling a global function with example usage: sequence_insert_reference_implementation(sequence, tensor, position) and returns: seq