def METHOD_NAME():
	"""Get BOM rate of an item from BOM"""
	item_bom_map = {}
	bom = frappe.qb.DocType("BOM")
	bom_data = (
		frappe.qb.from_(bom)
		.select(bom.item, (bom.total_cost / bom.quantity).as_("bom_rate"))
		.where((bom.is_active == 1) & (bom.is_default == 1))
	).run(as_dict=True)
	for d in bom_data:
		item_bom_map.setdefault(d.item, flt(d.bom_rate))
	return item_bom_map