code: def _check_instance(obj, attr):
      instance_dict = {}
      try:
          instance_dict = object.__getattribute__(obj, "__dict__")
      except AttributeError:
          pass
      return dict.get(instance_dict, attr, _sentinel)
  
file_path: catboost/contrib/python/jedi/py2/jedi/evaluate/compiled/getattr_static.py
imports: import types
  from jedi._compatibility import py_version
label_desc: Use image node_id 1 for calling a global function with example usage: _check_instance(obj, attr) and returns: dict