code: def _concat_from_sequence(
      seq: List[Any], axis: int, new_axis: int = 0
  ) -> np.ndarray:
      if new_axis == 1:
          seq2 = [s[..., np.newaxis] for s in seq]
          res = np.concatenate(seq2, axis=-1)
      else:
          res = np.concatenate(seq, axis=axis)
      return res
  
imports: from typing import Any, List
  import numpy
  from onnx.reference.op_run import OpRun
label_desc: Use image node_id 1 for calling a global function with example usage: _concat_from_sequence(seq, axis, new_axis) and returns: res