def _add_dunder_class(func, member):
python_cls = member.__class__<EOL>cls_name = getattr(python_cls, "<STR_LIT>", None)<EOL>if not cls_name:<EOL><INDENT>return<EOL><DEDENT>cls_bases = [ancestor.__name__ for ancestor in python_cls.__bases__]<EOL>ast_klass = build_class(cls_name, cls_bases, python_cls.__doc__)<EOL>func.instance_attrs["<STR_LIT>"] = [ast_klass]<EOL>
Add a __class__ member to the given func node, if we can determine it.