code: def _remove_intercept_patsy(terms):
      """
      Remove intercept from Patsy terms.
      """
      from patsy.desc import INTERCEPT
  
      if INTERCEPT in terms:
          terms.remove(INTERCEPT)
      return 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 2 for calling a global function with example usage: _remove_intercept_patsy(terms) and returns: terms