code: def test_creating_arraysequence_from_generator(self):
      gen_1, gen_2 = itertools.tee(e for e in SEQ_DATA["data"])
      seq = ArraySequence(gen_1)
      seq_with_buffer = ArraySequence(gen_2, buffer_size=256)
  
      # Check buffer size effect
      assert seq_with_buffer.get_data().shape == seq.get_data().shape
      assert seq_with_buffer._buffer_size > seq._buffer_size
  
      # Check generator result
      check_arr_seq(seq, SEQ_DATA["data"])
      check_arr_seq(seq_with_buffer, SEQ_DATA["data"])
  
      # Already consumed generator
      check_empty_arr_seq(ArraySequence(gen_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 3 for calling the TestArraySequence obj's underlying member method code with example usage: obj.test_creating_arraysequence_from_generator() without return types