def root():
if os.geteuid() == <NUM_LIT:0>:<EOL><INDENT>return True<EOL><DEDENT>elif subprocess.getoutput('<STR_LIT>') == '<STR_LIT:0>':<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Checks localhost root or sudo access