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