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