def run_node(node, updatehash, taskid):
 result = dict(result=None, traceback=None, taskid=taskid)
 try:
  result[u'result'] = node.run(updatehash=updatehash)
 except:
  (etype, eval, etr) = sys.exc_info()
  result[u'traceback'] = format_exception(etype, eval, etr)
  result[u'result'] = node.result
 return result

def run_node ( node , updatehash , taskid ) : result = dict ( result = None , traceback = None , taskid = taskid ) try : result [ u'result' ] = node . run ( updatehash = updatehash ) except : ( etype , eval , etr ) = sys . exc_info ( ) result [ u'traceback' ] = format_exception ( etype , eval , etr ) result [ u'result' ] = node . result return result
function to execute node .