code: def index_shape(self):
      if hasattr(self.index, "levshape"):
          return self.index.levshape
      else:
          return self.index.shape
  
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 2 for calling the Grouping obj's underlying member method code with example usage: obj.index_shape() and returns: self, self