def s3_url(config):
    """
    Generate the s3 url where the models will be saved

    Parameters
    ----------
    config : CfgNode
        Model configuration

    Returns
    -------
    url : str
        String containing the URL pointing to the s3 bucket
    """
    return 'https://s3.console.aws.amazon.com/s3/buckets/{}/{}'.format(
        config.checkpoint.s3_path[5:], config.name)