def gen_keywords(*args: Union[ANSIColors, ANSIStyles], **kwargs: Union[ANSIColors, ANSIStyles]) -> tuple:
fields: tuple = tuple()<EOL>values: tuple = tuple()<EOL>for tpl in args:<EOL><INDENT>fields += tpl._fields<EOL>values += tpl<EOL><DEDENT>for prefix, tpl in kwargs.items():<EOL><INDENT>fields += tuple(map(lambda x: '<STR_LIT:_>'.join([prefix, x]), tpl._fields))<EOL>values += tpl<EOL><DEDENT>return namedtuple('<STR_LIT>', fields)(*values)<EOL>
generate single escape sequence mapping.