def is_localized(node):
 if isinstance(node.parent, compiler.ast.CallFunc):
  if isinstance(node.parent.node, compiler.ast.Name):
   if (node.parent.node.name == '_'):
    return True
 return False

def is_localized ( node ) : if isinstance ( node . parent , compiler . ast . CallFunc ) : if isinstance ( node . parent . node , compiler . ast . Name ) : if ( node . parent . node . name == '_' ) : return True return False
check message wrapped by _() .