code: def _not_slice(slices, slices_to_exclude, n):
      ind = np.array([True] * n)
      for term in slices_to_exclude:
          s = slices[term]
          ind[s] = False
      return ind
  
imports: from statsmodels.compat.python import lrange
  import numpy
  import pandas
  from pandas import DataFrame, Index
  import patsy
  from scipy import stats
  from statsmodels.formula.formulatools import _has_intercept, _intercept_idx, _remove_intercept_patsy
  from statsmodels.iolib import summary2
  from statsmodels.regression.linear_model import OLS
label_desc: Use image node_id 7 for calling a global function with example usage: _not_slice(slices, slices_to_exclude, n) and returns: ind