def endpoint_address(endpoint):
    if endpoint not in '://':
        endpoint = 'tcp://' + endpoint
    return urlparse(endpoint).hostname or 'localhost'
dataset/ETHPy150Open spotify/docker-stress/spotify/docker_stress/docker_util.py/endpoint_address/swapped operands of `not in`