code: def __init__(
      self,
      Y=None,
      X=None,
      formula=None,
      axis=0,
      model="spherical",
      method=None,
      niter=2,
  ):
      # Check dimensions
      if Y is None:
          return
      else:
          self.fit(Y, X, formula, axis, model, method, niter)
  
imports: import numpy
  import scipy.stats
  from nipy.algorithms.statistics.utils import z_score
  from ..utils import mahalanobis
  from .None import kalman
label_desc: Use image node_id 1 to create a new glm object  with example: obj = glm(Y, X, formula, axis, model, method, niter)