Implement a function or set of functions to perform the parsing of menu items.
Each input line represents one item in the format name | price | category. Ignore blank lines and lines beginning with #. Return a list of dictionaries with name, price_cents, and category; malformed records must raise ValueError.
parse_menu_items(lines) receives a list of strings. Names and categories cannot be empty or contain |. Prices are nonnegative decimal values with at most two fractional digits.
def parse_menu_items(lines):