code: def __test_equal(self, _sarray, _data, _type):
      self.assertEqual(_sarray.dtype, _type)
      self.assertEqual(len(_sarray), len(_data))
      self.assertSequenceEqual(list(_sarray.head(len(_sarray))), _data)
  
file_path: turicreate/src/python/turicreate/test/test_sarray_builder.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from ..data_structures.sarray_builder import SArrayBuilder
  import unittest
  import array
  import datetime
  from .._cython.cy_flexible_type import GMT
  import pytest
label_desc: Use image node_id 1 for calling the SArrayBuilderTest obj's underlying member method code with example usage: obj.__test_equal(_sarray, _data, _type) without return types