def replace(param, index=None):
    """
    Optionally used by the preload generator to wrap items in the preload
    that need to be replaced by end users
    :param param: parameter name
    :param index: optional index (int or str) of the parameter
    """
    if (param.endswith("_names") or param.endswith("_ips")) and index is not None:
        param = "{}[{}]".format(param, index)
    return "VALUE FOR: {}".format(param) if param else ""