def _identity_matcher(target):
 def match(node):
  return (node is target)
 return match

def _identity_matcher ( target ) : def match ( node ) : return ( node is target ) return match
match a node to the target object by identity .