#NEWLINE# def get_dependencies( self , ctx ) : #NEWLINE# #INDENT# '\n        returns a list of (node, ctx) that this node is dependent on\n        in the context\n        ' #NEWLINE# node_state = self . _get_state ( ctx ) #NEWLINE# results = [ ] #NEWLINE# for ( ctx_id , callees ) in node_state . callees . iteritems ( ) : #NEWLINE# #INDENT# ctx = _get_context ( ctx_id , ctx ) #NEWLINE# for callee in callees : #NEWLINE# #INDENT# results . append ( ( callee , ctx ) ) #NEWLINE# #UNINDENT# #UNINDENT# return results