code: def test_from_vector():
      x = np.ones((3,))
      vector = to_vector(x)
      assert len(vector) == 3
  
imports: import numpy
  from elephas.mllib.adapter import *
  from pyspark.mllib.linalg import Matrices, Vectors
label_desc: Use image node_id 3 for calling a global function with example usage: test_from_vector() without return types