try to figure out if value is valid or jinja2 template value

    Args:
        config (:obj:`configparser.ConfigParser`): config object to read key from
        section (str): name of section in configparser
        option (str): name of option in configparser
        jinja_pattern (:obj:`_sre.SRE_Pattern`): a `re.compile()` pattern to match on

    Returns:
        str: value if value, else None

    Raises:
        KeyError:
        configparser.NoOptionError:
        configparser.NoSectionError:

def check_value(
        config,
        section,
        option,
        jinja_pattern=JINJA_PATTERN,
):
    """try to figure out if value is valid or jinja2 template value

    Args:
        config (:obj:`configparser.ConfigParser`): config object to read key from
        section (str): name of section in configparser
        option (str): name of option in configparser
        jinja_pattern (:obj:`_sre.SRE_Pattern`): a `re.compile()` pattern to match on

    Returns:
        str: value if value, else None

    Raises:
        KeyError:
        configparser.NoOptionError:
        configparser.NoSectionError:

    """
    value = config[section][option]
    if re.match(jinja_pattern, value):
        return None

    return value