from typing import Dict


def create_command_from_param(param: str, is_func: bool) -> Dict[str, str]:
    """
    :param param
    :param is_func: if true the value for param p is '{{ 1000 | p }}
           else '{{ p }}
    :return: Command setting the policy in the form of a Dict
    """
    liquid_value = "{{ 1000 | " + param + " }}" if is_func else "{{ " + param + " }}"
    return {"op": "set", "arg": param, "value_type": "liquid", "value": liquid_value}