code: def SequenceInsertImpl(
      sequence: list[np.ndarray],
      tensor: np.ndarray,
      position: int | None = None,
  ) -> list[np.ndarray]:
      if position is None:
          position = len(sequence)
      sequence.insert(position, tensor)
      return sequence
  
file_path: onnx/onnx/backend/test/case/model/sequence.py
imports: from __future__ import annotations
  import typing
  import numpy
  import onnx
  from onnx import TensorProto
  from onnx.backend.test.case.base import Base
  from onnx.backend.test.case.model import expect
label_desc: Use image node_id 3 for calling a global function with example usage: SequenceInsertImpl(sequence, tensor, position) and returns: sequence