src/sagemaker_xgboost_container/distributed.py
def wait_hostname_resolution(sm_hosts):
    """Wait for the hostname resolution of the container. This is known behavior as the cluster
    boots up and has been documented here:
     https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-training-algo-running-container.html#your-algorithms-training-algo-running-container-dist-training
    """
    for host in sm_hosts:
        _dns_lookup(host)
Wait for the hostname resolution of the container. This is known behavior as the cluster
    boots up and has been documented here:
     https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-training-algo-running-container.html#your-algorithms-training-algo-running-container-dist-training
    
Wait for the hostname resolution of the container.
Wait for the hostname resolution of the container .
def wait_hostname_resolution(sm_hosts):
    for host in sm_hosts:
        _dns_lookup(host)
def wait_hostname_resolution ( sm_hosts ) : for host in sm_hosts : _dns_lookup ( host )
Wait for the hostname resolution of the container.
Wait for the hostname resolution of the container .
"""Wait for the hostname resolution of the container. This is known behavior as the cluster
    boots up and has been documented here:
     https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-training-algo-running-container.html#your-algorithms-training-algo-running-container-dist-training
    """
sm_hosts