code: def var_test():
      iris_h2o = h2o.import_file(
          path=pyunit_utils.locate("smalldata/iris/iris_wheader.csv")
      )
      iris_np = np.genfromtxt(
          pyunit_utils.locate("smalldata/iris/iris_wheader.csv"),
          delimiter=",",
          skip_header=1,
          usecols=(0, 1, 2, 3),
      )
  
      var_np = np.var(iris_np, axis=0, ddof=1)
      for i in range(4):
          var_h2o = iris_h2o[i].var()
          assert (
              abs(var_np[i] - var_h2o) < 1e-10
          ), "expected equal variances"
  
      var_cov_h2o = iris_h2o[0:4].var()
      var_cov_np = np.cov(iris_np, rowvar=0, ddof=1)
  
imports: from builtins import range
  import sys
  import h2o
  from tests import pyunit_utils
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: var_test() without return types