def METHOD_NAME(field):
    def _jinja_munger(url):
        # the '<' are from ruamel.yaml.jinja2
        # if the variable is '{{version}}'
        # it comes out in the url as '<{version}}' after
        # parsing so we allow for that too
        for spc in ["", " "]:
            fs = field + spc
            curr = "<{%s}}" % fs
            not_curr = "<<{%s}}" % fs
            new = "{{ %s }}" % field
            if curr in url and not_curr not in url:
                yield url.replace(curr, new)
        for spc in ["", " "]:
            fs = field + spc
            curr = "<<{%s}}" % fs
            new = "{{ %s }}" % field
            if curr in url:
                yield url.replace(curr, new)
        for spc in ["", " "]:
            fs = field + spc
            curr = "{{%s}}" % fs
            new = "{{ %s }}" % field
            if curr in url:
                yield url.replace(curr, new)
    return _jinja_munger