code: def _get_dummy_index(X, const_idx):
      dummy_ind = _isdummy(X)
      dummy = True
  
      if dummy_ind.size == 0:  # do not waste your time
          dummy = False
          dummy_ind = None  # this gets passed to stand err func
      return dummy_ind, dummy
  
imports: from statsmodels.compat.python import lzip
  import numpy
  from scipy.stats import norm
  from statsmodels.tools.decorators import cache_readonly
label_desc: Use image node_id 5 for calling a global function with example usage: _get_dummy_index(X, const_idx) and returns: dummy_ind,  dummy