def METHOD_NAME(item_code, include_uom):
	"""Optimization: get only the item doc and re_order_levels table"""
	bin = frappe.qb.DocType("Bin")
	item = frappe.qb.DocType("Item")
	query = (
		frappe.qb.from_(item)
		.select(item.name, item.item_name, item.description, item.item_group, item.brand, item.stock_uom)
		.where(
			(item.is_stock_item == 1)
			& (item.disabled == 0)
			& (
				(item.end_of_life > today()) | (item.end_of_life.isnull()) | (item.end_of_life == "0000-00-00")
			)
			& (ExistsCriterion(frappe.qb.from_(bin).select(bin.name).where(bin.item_code == item.name)))
		)
	)
	if item_code:
		query = query.where(item.item_code == item_code)
	if include_uom:
		ucd = frappe.qb.DocType("UOM Conversion Detail")
		query = query.left_join(ucd).on((ucd.parent == item.name) & (ucd.uom == include_uom))
	items = query.run(as_dict=True)
	ir = frappe.qb.DocType("Item Reorder")
	query = frappe.qb.from_(ir).select("*")
	if item_code:
		query = query.where(ir.parent == item_code)
	reorder_levels = frappe._dict()
	for d in query.run(as_dict=True):
		if d.parent not in reorder_levels:
			reorder_levels[d.parent] = []
		reorder_levels[d.parent].append(d)
	item_map = frappe._dict()
	for item in items:
		item["reorder_levels"] = reorder_levels.get(item.name) or []
		item_map[item.name] = item
	return item_map