def demo(printer, **kwargs):
for demo_choice in kwargs.keys():<EOL><INDENT>command = getattr(<EOL>printer,<EOL>demo_choice<EOL>.replace('<STR_LIT>', '<STR_LIT>')<EOL>.replace('<STR_LIT>', '<STR_LIT>')<EOL>)<EOL>for params in DEMO_FUNCTIONS[demo_choice]:<EOL><INDENT>command(**params)<EOL><DEDENT>printer.cut()<EOL><DEDENT>
Prints specificed demos. Called when CLI is passed `demo`. This function
uses the DEMO_FUNCTIONS dictionary.

:param printer: A printer from escpos.printer
:param kwargs: A dict with a key for each function you want to test. It's
    in this format since it usually comes from argparse.