def valid_port(port):
try:<EOL><INDENT>return <NUM_LIT:0> <= int(port) <= <NUM_LIT><EOL><DEDENT>except:<EOL><INDENT>return False<EOL><DEDENT>
Returns whether the specified string is a valid port,
including port 0 (random port).