fix(tools/codegen/code_bmc): add basic code bmc code