docstr: ...Test that row view works as expected on Array 2D
docstr_tok: ["...","Test","that","row","view","works","as","expected","on","Array","2D"]
code: def test_row_view(self):
      """...Test that row view works as expected on Array 2D"""
      for array_type in self.array_types:
          if Test.is_1d(array_type) or Test.is_array_ptr(array_type):
              continue
  
          test_func = getattr(test, "test_row_view_%s" % array_type)
  
          for test_array in self._test_arrays(array_type):
              original_array = test_array.copy()
              row = 1
  
              row_0 = original_array[0, :]
              row_1 = original_array[1, :]
              row_view = original_array[row, :]
  
              expected = [row_0, row_1, row_view]
              results = test_func(test_array, row)
              # Check that every time the right view has been extracted
              for e, r in zip(expected, results):
                  self.compare_arrays(
                      r, self.cast_1d_array_to_1d_dense(e)
                  )
  
              # Check that the right part of the array has been set to 0
              output_array = self.cast_array_to_dense(original_array)
              output_array[row, :] = 0
  
              self.compare_arrays(test_array, output_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 22 for calling the Test obj's underlying member method code with example usage: obj.test_row_view() without return types