def _midrule(dataset_width):
 if ((not dataset_width) or (dataset_width == 1)):
  return '\\midrule'
 return ' '.join([_cmidrule(colindex, dataset_width) for colindex in range(1, (dataset_width + 1))])

def _midrule ( dataset_width ) : if ( ( not dataset_width ) or ( dataset_width == 1 ) ) : return '\\midrule' return ' ' . join ( [ _cmidrule ( colindex , dataset_width ) for colindex in range ( 1 , ( dataset_width + 1 ) ) ] )
generates the table midrule .