code: def ols(self, axis):
      y = np.rollaxis(self.y, 0, axis + 1)  ## time index is axis
      X = self.X
      m = glm(y, X, axis=axis)
      m1 = glm(y, X, axis=axis, method="kalman")
      b = m.beta
      b1 = m1.beta
      tcon = m.contrast([1, 0])
      tcon1 = m1.contrast([1, 0])
      z = tcon.zscore()
      z1 = tcon1.zscore()
      assert_almost_equal(b, b1)
  
file_path: nipy/nipy/labs/glm/tests/test_glm.py
imports: import numpy
  from numpy.testing import TestCase, assert_almost_equal
  from ..glm import glm
label_desc: Use image node_id 2 for calling the TestFitting obj's underlying member method code with example usage: obj.ols(axis) without return types