code: def is_index_like(s):
      """Looks like a Pandas Index. ** Borrowed from dask.dataframe.utils **"""
      typ = type(s)
      return (
          all(hasattr(s, name) for name in ("name", "dtype"))
          and "index" in typ.__name__.lower()
      )
  
imports: from __future__ import division, print_function
  import inspect
  import sys
label_desc: Use image node_id 3 for calling a global function with example usage: is_index_like(s) and returns: unknown