def METHOD_NAME(
    salt_master, salt_ssh_cli, grains_filter_by_lookup, grains_filter_by_default
):
    filter_content = f"{{%- set lookup = {grains_filter_by_lookup} %}}"
    default_content = f"{{%- set lookup = {grains_filter_by_default} %}}"
    content = r"""