code: def test_Logistic(x_y):
      X = x_y["X"]
      Y = x_y["Y"]
      cmodel = GLM(design=X, family=family.Binomial())
      results = cmodel.fit(Y)
      assert results.df_resid == 30
  
file_path: nipy/nipy/algorithms/statistics/models/tests/test_glm.py
imports: import numpy
  import pytest
  from ..None import family
  from ..glm import Model
label_desc: Use image node_id 2 for calling a global function with example usage: test_Logistic(x_y) without return types