use generalized form of index checking (is_index_like) #4531
Unfortunately we don't have a good lightweight pandas-like project lying around. For Dask array we tend to use sparse.
For recent cudf compatibility PRs like this I haven't been testing much in the dask/dask codebase. I think we're ok to merge this for now. We should probably start thinking about a longer term solution though.