Temporarily add back Index._get_attributes_dict for dask compat
See https://github.com/pandas-dev/pandas/pull/43895#issuecomment-938472299. There was of course no need to revert the full PR, just to add this method again. 