def METHOD_NAME(dialect, file):
    """For given test examples, check successful parsing."""
    raw = load_file(dialect, file)
    config_overrides = dict(dialect=dialect)
    # Use the helper function to avoid parsing twice
    parsed: Optional[ParsedString] = lex_and_parse(config_overrides, raw)
    if not parsed:  # Empty file case
        return
    print(f"Post-parse structure: {parsed.tree.to_tuple(show_raw=True)}")
    print(f"Post-parse structure: {parsed.tree.stringify()}")
    # Check we're all there.
    assert parsed.tree.raw == raw
    # Check that there's nothing unparsable
    typs = parsed.tree.type_set()
    assert "unparsable" not in typs