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/pure-eval/pure_eval/my_getattr_static.py
imports: import types
  from pure_eval.utils import of_type, CannotEval
label_desc: Use image node_id 2 for calling a global function with example usage: _check_instance(obj, attr) and returns: dict