def METHOD_NAME(node: env_var_docs.parser.Node):
    if not isinstance(node.details, env_var_docs.parser.Variable):
        return
    var = node.details
    if var.regex is None:
        return
    # appease mypy.
    assert var.regex is not None
    assert var.regex_tests is not None
    result = _run_test(node.name, var.regex, var.regex_tests)
    print(result)
    if result.regex_error != "" or result.failing_matches:
        failures.append(node.name)