code: def _get_count_index(X, const_idx):
      count_ind = _iscount(X)
      count = True
  
      if count_ind.size == 0:  # do not waste your time
          count = False
          count_ind = None  # for stand err func
      return count_ind, count
  
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 7 for calling a global function with example usage: _get_count_index(X, const_idx) and returns: count_ind,  count