def getAndClear(node, nodeId):
 result = get(node, nodeId)
 if result:
  clearNode(result)
 return result

def getAndClear ( node , nodeId ) : result = get ( node , nodeId ) if result : clearNode ( result ) return result
get a node with the specified c{nodeid} as any of the c{class} .