code: def test_var(self):
      x = np.arange(9).reshape((3, 3))
      mx = x.view(np.matrix)
      assert_equal(x.var(ddof=0), mx.var(ddof=0))
      assert_equal(x.var(ddof=1), mx.var(ddof=1))
  
imports: import collections.abc
  import numpy
  from numpy import matrix, asmatrix, bmat
  from numpy.testing import assert_, assert_equal, assert_almost_equal, assert_array_equal, assert_array_almost_equal, assert_raises
  from numpy.linalg import matrix_power
label_desc: Use image node_id 6 for calling the TestProperties obj's underlying member method code with example usage: obj.test_var() without return types