code: def _generic_dict_attribute(self, obj, name):
          
  
          class DictMethodBoundMethod(astroid.BoundMethod):
              def infer_call_result(self, caller, context=None):
                  yield obj
  
          meth = next(self._instance._proxied.igetattr(name))
          return DictMethodBoundMethod(proxy=meth, bound=self._instance)
docs: Generate a bound method that can infer the given *obj*.