code: def test_arraysequence_copy(self):
      orig = SEQ_DATA["seq"]
      seq = orig.copy()
      n_rows = seq.total_nb_rows
      assert n_rows == orig.total_nb_rows
      assert_array_equal(seq._data, orig._data[:n_rows])
      assert seq._data is not orig._data
      assert_array_equal(seq._offsets, orig._offsets)
      assert seq._offsets is not orig._offsets
      assert_array_equal(seq._lengths, orig._lengths)
      assert seq._lengths is not orig._lengths
      assert seq.common_shape == orig.common_shape
  
      # Taking a copy of an `ArraySequence` generated by slicing.
      # Only keep needed data.
      seq = orig[::2].copy()
      check_arr_seq(seq, SEQ_DATA["data"][::2])
      assert seq._data is not orig._data
  
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 the TestArraySequence obj's underlying member method code with example usage: obj.test_arraysequence_copy() without return types