def METHOD_NAME(namespace, txs):
    data = [
        "// This file was GENERATED by command:\n",
        "//     generate_fixtures.py\n",
        "// DO NOT EDIT BY HAND!!!\n"
    ]
    newLines = []
    newLines.append("#include \""+namespace+'_fixtures.h'+"\"\n")
    newLines.append("\n")
    newLines.append("namespace ledger {\n")
    newLines.append("\tnamespace testing {\n")
    newLines.append("\t\tnamespace "+namespace+" {\n")
    apiCalls = []
    apiCalls.append("core::api::AccountCreationInfo XPUB_INFO(\n")
    apiCalls.append('        0, {"xtz"}, {"44\'/1729\'/0\'"}, \n')
    apiCalls.append('{ledger::core::hex::toByteArray("' + pubKey + '")} , {ledger::core::hex::toByteArray("' + chainCode + '")}\n')
    apiCalls.append(');\n')
    apiCalls.append("std::shared_ptr<core::"+classPrefix+"LikeAccount> inflate(const std::shared_ptr<core::WalletPool>& pool, const std::shared_ptr<core::AbstractWallet>& wallet) {\n")
    apiCalls.append("\tauto account = std::dynamic_pointer_cast<core::"+classPrefix+"LikeAccount>(wait(wallet->newAccountWithInfo(XPUB_INFO)));\n")
    apiCalls.append("\tsoci::session sql(pool->getDatabaseSessionPool()->getPool());\n")
    apiCalls.append("\tsql.begin();")
    for i,tx in enumerate(txs):
        apiCalls.append("\taccount->putTransaction(sql, *core::JSONUtils::parse<core::"+parser+">(TX_" + str(i+1) + "));\n")
    apiCalls.append("\tsql.commit();\n")
    apiCalls.append("\treturn account;\n")
    apiCalls.append("}\n")
    txLines = []
    for i,tx in enumerate(txs):
        txLines.append(('const std::string TX_'+str(i+1)+' = "'+json.dumps(tx).replace('"','\\"')+'";\n'))
    namespacedLines = apiCalls+txLines
    for idx, line in enumerate(namespacedLines):
        namespacedLines[idx] = "\t\t\t"+line
    newLines += namespacedLines + ["\t\t}\n","\t}\n", "}\n"]
    result = data+newLines
    with open(path+namespace+'_fixtures.cpp', 'w+') as file:
        file.writelines(result)
        file.close()