code: def concat_from_sequence(
      input_sequence: Union[Tuple[np.ndarray], List[np.ndarray]],
      /,
      *,
      new_axis: int = 0,
      axis: int = 0,
      out: Optional[np.ndarray] = None,
  ) -> np.ndarray:
      is_tuple = type(input_sequence) is tuple
      if is_tuple:
          input_sequence = list(input_sequence)
      if new_axis == 0:
          ret = np.concatenate(input_sequence, axis=axis)
          return ret
      elif new_axis == 1:
          ret = np.stack(input_sequence, axis=axis)
          return ret
  
imports: from typing import Iterable, Optional, Union, Sequence, Tuple, NamedTuple, Literal, Callable, Any, List
  from numbers import Number
  from collections import namedtuple
  import numpy
  import ivy
  from ivy.functional.backends.numpy.helpers import _scalar_output_to_0d_array
  from ivy.func_wrapper import with_supported_dtypes
  from .None import backend_version
label_desc: Use image node_id 24 for calling a global function with example usage: concat_from_sequence() and returns: ret, ret