def get_docker_client():
    client_opts = kwargs_from_env(assert_hostname=False)
    if 'base_url' in client_opts:
        return Client(**client_opts)
    else:
        return Client(base_url=get_docker_host(), **client_opts)
dataset/ETHPy150Open Yelp/paasta/paasta_tools/utils.py/get_docker_client/original