def is_localhost(host_and_port):
    (host, _) = host_and_port
    if host in LOCALHOST_NAMES:
        return 1
    else:
        return 2
Return 1 if the specified host+port is a member of the 'localhost' list of hosts, 2 if not (predominately used
dataset/ETHPy150Open jasonrbriggs/stomp.py/stomp/utils.py/is_localhost