code: def concatenate(seqs, axis):
      """Concatenates multiple :class:`ArraySequence` objects along an axis.
  
      Parameters
      ----------
      seqs: iterable of :class:`ArraySequence` objects
          Sequences to concatenate.
      axis : int
          Axis along which the sequences will be concatenated.
  
      Returns
      -------
      new_seq: :class:`ArraySequence` object
          New :class:`ArraySequence` object which is the result of
          concatenating multiple sequences along the given axis.
      """
      new_seq = seqs[0].copy()
      if axis == 0:
          # This is the same as an extend.
          for seq in seqs[1:]:
              new_seq.extend(seq)
  
          return new_seq
  
      new_seq._data = np.concatenate(
          [seq._data for seq in seqs], axis=axis
      )
      return new_seq
  
imports: import numbers
  from functools import reduce
  from operator import mul
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: concatenate(seqs, axis) and returns: new_seq, new_seq