def METHOD_NAME(self, index, body=None, params=None, headers=None):
    """
    Updates the managed index policy to a new policy (or to a new version of the policy).
    :arg index: The name of the index to change policy on
    """
    if index in SKIP_IN_PATH:
        raise ValueError("Empty value passed for a required argument 'index'.")
    return self.transport.perform_request(
        "POST",
        _make_path("_plugins", "_ism", "change_policy", index),
        params=params,
        headers=headers,
        body=body,
    )