def is_template_string(maybe_template: str) -> bool:
    'Check if the input is a Jinja2 template.'
    return (_RE_JINJA_DELIMITERS.search(maybe_template) is not None)
Check if the input is a Jinja2 template.
def is_template_string(maybe_template: str) -> bool:
    
    return (_RE_JINJA_DELIMITERS.search(maybe_template) is not None)