docstr: ...Test last method of 1d arrays
docstr_tok: ["...","Test","last","method","of","1d","arrays"]
code: def test_last(self):
      """...Test last method of 1d 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_1d(array_type):
              test_func = getattr(test, "test_last_%s" % array_type)
              test_arrays = self._test_arrays(array_type)
              for test_array in test_arrays:
                  compare_array = Test.cast_1d_array_to_1d_dense(
                      test_array
                  )
                  # Then we compare that the last value is correct
                  self.assertEqual(
                      test_func(test_array), compare_array[-1]
                  )
  
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 15 for calling the Test obj's underlying member method code with example usage: obj.test_last() without return types