code: def test_concatenate():
      seq = SEQ_DATA[
          "seq"
      ].copy()  # In case there is in-place modification.
      seqs = [seq[:, [i]] for i in range(seq.common_shape[0])]
      new_seq = concatenate(seqs, axis=1)
      seq._data += (
          100  # Modifying the 'seq' shouldn't change 'new_seq'.
      )
      check_arr_seq(new_seq, SEQ_DATA["data"])
      assert new_seq._is_view is not True
  
      seq = SEQ_DATA["seq"]
      seqs = [seq[:, [i]] for i in range(seq.common_shape[0])]
      new_seq = concatenate(seqs, axis=0)
      assert len(new_seq) == seq.common_shape[0] * len(seq)
      assert_array_equal(new_seq._data, seq._data.T.reshape((-1, 1)))
  
imports: import itertools
  import os
  import sys
  import tempfile
  import unittest
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from ...testing import assert_arrays_equal
  from ..array_sequence import ArraySequence, concatenate, is_array_sequence
label_desc: Use image node_id 6 for calling a global function with example usage: test_concatenate() without return types