def decorated_with_abc(func):
 if func.decorators:
  for node in func.decorators.nodes:
   try:
    infered = next(node.infer())
   except astroid.InferenceError:
    continue
   if (infered and (infered.qname() in ABC_METHODS)):
    return True

def decorated_with_abc ( func ) : if func . decorators : for node in func . decorators . nodes : try : infered = next ( node . infer ( ) ) except astroid . InferenceError : continue if ( infered and ( infered . qname ( ) in ABC_METHODS ) ) : return True
determine if the func node is decorated with abc decorators .