def is_func_default(node):
 parent = node.scope()
 if isinstance(parent, astroid.Function):
  for default_node in parent.args.defaults:
   for default_name_node in default_node.nodes_of_class(astroid.Name):
    if (default_name_node is node):
     return True
 return False

def is_func_default ( node ) : parent = node . scope ( ) if isinstance ( parent , astroid . Function ) : for default_node in parent . args . defaults : for default_name_node in default_node . nodes_of_class ( astroid . Name ) : if ( default_name_node is node ) : return True return False
return true if the given name node is used in function default arguments value .