code: def test_from_matrix():
      mat = Matrices.dense(1, 2, [13, 37])
      x = from_matrix(mat)
      assert x.shape == (1, 2)
  
imports: import numpy
  from elephas.mllib.adapter import *
  from pyspark.mllib.linalg import Matrices, Vectors
label_desc: Use image node_id 2 for calling a global function with example usage: test_from_matrix() without return types