code: def matchcol(col, X):
      """Find the row in X with the highest correlation with 1D col.
  
      Used to find matching columns in fMRIstat's design with the design
      created by Protocol. Not meant as a generic helper function.
      """
      c = np.array(
          [np.corrcoef(col, X[i])[0, 1] for i in range(X.shape[0])]
      )
      c = np.nan_to_num(c)
      ind = np.argmax(np.abs(c))
      return ind, c[ind]
  
file_path: nipy/nipy/modalities/fmri/fmristat/tests/test_FIAC.py
imports: import numpy
  from nipy.algorithms.statistics.formula import formulae
  from nipy.algorithms.statistics.models.regression import OLSModel
  from nipy.testing import assert_almost_equal
  from ...None import design, hrf, utils
  from ..None import hrf
  from .FIACdesigns import N_ROWS, altdescr, descriptions, fmristat, time_vector
label_desc: Use image node_id 6 for calling a global function with example usage: matchcol(col, X) and returns: ind,  c