code: def ConcatFromSequenceImpl(
      sequence: list[np.ndarray], axis: int, new_axis: int | None = 0
  ) -> np.ndarray:
      if not new_axis:
          return np.concatenate(sequence, axis)
      return np.stack(sequence, axis)
  
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 8 for calling a global function with example usage: ConcatFromSequenceImpl(sequence, axis, new_axis) and returns: np, np