code: def is_dict_like(obj):
      """
      Check if the object is dict-like.
  
      Parameters
      ----------
      obj : The object to check
  
      Returns
      -------
      is_dict_like : bool
          Whether `obj` has dict-like properties.
  
      Examples
      --------
      >>> is_dict_like({1: 2})
      True
      >>> is_dict_like([1, 2, 3])
      False
      >>> is_dict_like(dict)
      False
      >>> is_dict_like(dict())
      True
      """
      dict_like_attrs = ("__getitem__", "keys", "__contains__")
      return (
          all(hasattr(obj, attr) for attr in dict_like_attrs)
          # [GH 25196] exclude classes
          and not isinstance(obj, type)
      )
  
file_path: catboost/contrib/python/pandas/py2/pandas/core/dtypes/inference.py
imports: from numbers import Number
  import re
  import numpy
  from pandas._libs import lib
  from pandas.compat import PY2, Set, re_type, string_and_binary_types, string_types, text_type
  from pandas import compat
label_desc: Use image node_id 11 for calling a global function with example usage: is_dict_like(obj) and returns: unknown