docstr: ...Test as array ptr method of arrays
docstr_tok: ["...","Test","as","array","ptr","method","of","arrays"]
code: def test_as_array_ptr(self):
      """...Test as array ptr method of arrays"""
      for array_type in self.array_types:
          # We run this test only on 1d arrays as last is not implemented
          # on others
          if Test.is_array_ptr(array_type):
              continue
  
          # To be done later ....
          # TODO: fix for others and then remove this line
          # What is missing for that ? Well, basically :
          # 1- Generate the test functions for the class BaseArrayDouble and BaseArrayDouble2d
          #   (See file array_test/src/array_test.h Macro TEST_AS_ARRAY_PTR
          #   and file array_test/src/array_test.cpp Macro TEST_AS_ARRAY_PTR_CPP)
          #
          # 2- The typemap_out of SArrayDouble2d, SSparseArray, SSparseArray2d,
          #   SBaseArrayDouble and SBaseArrayDouble2d
          #   (see file array/swig/sarray_typemap_out to see how the typemap out of
          #   SArrayDouble is written)
          if array_type != "ArrayDouble":
              continue
  
          test_func = getattr(test, "test_as_array_ptr_%s" % array_type)
          test_arrays = self._test_arrays(array_type)
          for test_array in test_arrays:
              np.testing.assert_equal(test_func(test_array), test_array)
  
imports: import unittest
  import numpy
  from numpy.linalg import norm
  from tick.array_test.build import array_test
  from scipy.sparse import csr_matrix
  import itertools
label_desc: Use image node_id 23 for calling the Test obj's underlying member method code with example usage: obj.test_as_array_ptr() without return types