code: def test_vectorspace_dimensionality():
      a = np.array([[1, 2, 3], [1, 2, 3], [1, 2, 3]])
      assert vectorspace_dimensionality(a) == 1
  
      a[:, 1] *= 2
      a[:, 2] *= 4
  
      assert vectorspace_dimensionality(a) == 1
  
      a[:, 1] += np.array([3, 34, 99])
  
      assert vectorspace_dimensionality(a) == 2
  
      b = np.array([[1, 2, 3], [15, 1, 3]])
      assert vectorspace_dimensionality(b) == 2
  
imports: import numpy
  from mlxtend.math import vectorspace_dimensionality, vectorspace_orthonormalization
label_desc: Use image node_id 2 for calling a global function with example usage: test_vectorspace_dimensionality() without return types