def tlv_file_mapping(tlv_data_mapping, tmp_path):
    """Return the path to an XML file containing the mapping."""
    path = tmp_path / "mapping.xml"
    path.write_bytes(tlv_data_mapping)
    return path