code: def _make_generic_names(index):
      n_names = len(index.names)
      pad = str(len(str(n_names)))  # number of digits
      return [
          ("group{0:0" + pad + "}").format(i) for i in range(n_names)
      ]
  
imports: from statsmodels.compat.python import lrange, lzip
  import numpy
  import pandas
  import statsmodels.tools.data
  from pandas import Index, MultiIndex
label_desc: Use image node_id 7 for calling a global function with example usage: _make_generic_names(index) and returns: unknown