code: def is_dataframe_like(df):
      """Looks like a Pandas DataFrame. ** Borrowed from dask.dataframe.utils **"""
      typ = type(df)
      return (
          all(
              hasattr(typ, name)
              for name in ("groupby", "head", "merge", "mean")
          )
          and all(hasattr(df, name) for name in ("dtypes", "columns"))
          and not any(hasattr(typ, name) for name in ("name", "dtype"))
      )
  
imports: from __future__ import division, print_function
  import inspect
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: is_dataframe_like(df) and returns: unknown