in bowler/helpers.py [0:0]
def is_method(node: LN) -> bool:
return (
node.type == SYMBOL.funcdef
and node.parent is not None
and node.parent.type == SYMBOL.suite
and node.parent.parent is not None
and node.parent.parent.type == SYMBOL.classdef
)