@staticmethod<EOL><INDENT>def any_of_table(blocks):<DEDENT>
HEADER = '<STR_LIT>'<EOL>cnt = len(blocks)<EOL>if cnt < <NUM_LIT:2>:<EOL><INDENT>return blocks[<NUM_LIT:0>] if blocks else '<STR_LIT>'<EOL><DEDENT>width = max((len(HEADER), sum([c.padded_width for c in blocks]))) + (cnt + <NUM_LIT:1>)<EOL>height = max([c.height for c in blocks])<EOL>top_bar = '<STR_LIT>'.format('<STR_LIT:->' * (width - <NUM_LIT:2>))<EOL>header_bar = '<STR_LIT>'.format('<STR_LIT:+>'.join(['<STR_LIT:=>' * c.padded_width for c in blocks]))<EOL>bottom_bar = '<STR_LIT>'.format('<STR_LIT:+>'.join(['<STR_LIT:->' * c.padded_width for c in blocks]))<EOL>header = '<STR_LIT>'.format(HEADER.center(width - <NUM_LIT:2>))<EOL>body = '<STR_LIT:\n>'.join(<EOL>['<STR_LIT>'.format('<STR_LIT>'.join([c.get_line_justified(i) for c in blocks])) for i in range(height)])<EOL>return '<STR_LIT:\n>'.join([top_bar,<EOL>header,<EOL>header_bar,<EOL>body,<EOL>bottom_bar])<EOL>
:type blocks: list of TextBlock