def METHOD_NAME(cmd, provider_id, sku, location):
    """
    Accept the terms of a provider and SKU combination to enable it for workspace creation.
    """
    # This command is a wrapper for `az vm image terms accept`, but it takes care of finding the Publisher and Offer on behalf of the user.
    client = cf_offerings(cmd.cli_ctx)
    (publisher_id, offer_id) = _get_publisher_and_offer_from_provider_id(client.list(location_name=location), provider_id)
    if not _valid_publisher_and_offer(provider_id, publisher_id, offer_id):
        return None
    term = _get_terms_from_marketplace(cmd, publisher_id, offer_id, sku)
    term.accepted = True
    return _set_terms_from_marketplace(cmd, publisher_id, offer_id, sku, term)