docstr: ...Test view method of arrays
docstr_tok: ["...","Test","view","method","of","arrays"]
code: def test_view(self):
      """...Test view method of arrays"""
      # We take two random numbers to have different test_arrays
      for array_type in self.array_types:
          # We run this test only on non pointer arrays
          if not Test.is_array_ptr(array_type):
              test_func = getattr(test, "test_view_%s" % array_type)
              test_arrays = self._test_arrays(array_type)
              for test_array in test_arrays:
                  test_array1 = test_array.copy()
                  test_array2 = test_array.copy()
                  test_array3 = test_array.copy()
  
                  expected = np.array(
                      [
                          test_array1.sum(),
                          test_array2.sum(),
                          test_array3.sum(),
                      ]
                  )
                  results = test_func(
                      test_array1, test_array2, test_array3
                  )
                  np.testing.assert_array_almost_equal(
                      results, expected
                  )
  
                  Test.compare_arrays(test_array1, test_array)
                  Test.compare_arrays(
                      test_array2, np.zeros_like(test_array2)
                  )
                  Test.compare_arrays(
                      test_array3, np.zeros_like(test_array3)
                  )
  
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 20 for calling the Test obj's underlying member method code with example usage: obj.test_view() without return types