code: def _intercept_idx(design_info):
      """
      Returns boolean array index indicating which column holds the intercept.
      """
      from patsy.desc import INTERCEPT
      from numpy import array
  
      return array([INTERCEPT == i for i in design_info.terms])
  
file_path: statsmodels/statsmodels/formula/formulatools.py
imports: import statsmodels.tools.data
  from patsy import dmatrices, NAAction
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: _intercept_idx(design_info) and returns: array