def METHOD_NAME(IOtest_mtz):
    """Test DataSet.write_mtz() with merged MTZ file"""
    dataset = rs.read_mtz(IOtest_mtz)
    with tempfile.NamedTemporaryFile(suffix=".mtz") as temp:
        dataset.write_mtz(temp.name)
        assert exists(temp.name)