def METHOD_NAME(text, name):
    for match in re.finditer(block_patt, text, re.DOTALL | re.MULTILINE | re.IGNORECASE):
        found = match.group("name")
        value = match.group("value")
        if found == name:
            return Template(value)
    msg = "*** Error: missing block name: {}".format(name)
    logger.error(msg)
    return Template(msg)