def tlv_file_binary(tlv_data_binary, tmp_path):
    """Return the path to a binary file containing the test tree."""
    path = tmp_path / "expected.tlv"
    path.write_bytes(tlv_data_binary)
    return path