@lru_cache(maxsize=<NUM_LIT:1000>)<EOL>def overridden_method(klass, name):
try:<EOL><INDENT>parent = next(klass.local_attr_ancestors(name))<EOL><DEDENT>except (StopIteration, KeyError):<EOL><INDENT>return None<EOL><DEDENT>try:<EOL><INDENT>meth_node = parent[name]<EOL><DEDENT>except KeyError:<EOL><INDENT>return None<EOL><DEDENT>if isinstance(meth_node, astroid.FunctionDef):<EOL><INDENT>return meth_node<EOL><DEDENT>return None<EOL>
get overridden method if any