def format_blocks(blocks):
 assert (isinstance(blocks, tuple) and all((isinstance(x, int) for x in blocks)))
 return _PrettyBlocks(blocks)

def format_blocks ( blocks ) : assert ( isinstance ( blocks , tuple ) and all ( ( isinstance ( x , int ) for x in blocks ) ) ) return _PrettyBlocks ( blocks )
pretty-format *blocks* .