code: def ols_glm(n=100, p=80, q=10):
      X, Y = np.random.randn(p, q), np.random.randn(p, n)
      glm = GeneralLinearModel(X)
      glm.fit(Y, "ols")
      return glm, n, p, q
  
imports: import numpy
  import pytest
  from nibabel import Nifti1Image, load, save
  from numpy.testing import assert_almost_equal, assert_array_almost_equal, assert_array_equal
  from nipy.io.nibcompat import get_affine
  from nipy.testing import funcfile
  from nipy.testing.decorators import if_example_data
  from ..glm import FMRILinearModel, GeneralLinearModel, data_scaling
label_desc: Use image node_id 7 for calling a global function with example usage: ols_glm(n, p, q) and returns: glm,  n,  p,  q