class_docstr: This class defines tests for the to_matrix() and to_matrix_with_info() utility
  functions.
docstr: Test that if we pass some array, we get back the right thing.  This array
  will be filled with doubles only.
docstr_tok: ["Test","that","if","we","pass","some","array",",","we","get","back","the","right","thing",".","This","array","will","be","filled","with","doubles","only","."]
code: def testArraylikeToMatrix(self):
      """
      Test that if we pass some array, we get back the right thing.  This array
      will be filled with doubles only.
      """
      a = [
          [0.01, 0.02, 0.03],
          [0.04, 0.05, 0.06],
          [0.07, 0.08, 0.09],
          [0.10, 0.11, 0.12],
      ]
  
      m, _ = to_matrix(a)
  
      self.assertTrue(isinstance(m, np.ndarray))
      self.assertEqual(m.dtype, np.dtype(np.double))
      self.assertEqual(m.shape[0], 4)
      self.assertEqual(m.shape[1], 3)
  
      for i in range(4):
          for j in range(3):
              self.assertEqual(a[i][j], m[i, j])
  
imports: import unittest
  import pandas
  import numpy
  from mlpack.matrix_utils import to_matrix
  from mlpack.matrix_utils import to_matrix_with_info
label_desc: Use image node_id 4 for calling the TestToMatrix obj's underlying member method code with example usage: obj.testArraylikeToMatrix() without return types