

def get_waiter_model_from_service_model(session, service_model):
    try:
        model = session.get_waiter_model(service_model.service_name, service_model.api_version)
    except DataNotFoundError:
        return None
    return model

dataset/ETHPy150Open aws/aws-cli/awscli/customizations/waiters.py get_waiter_model_from_service_model/original