def bin_annotation(annotation=None, subsampling_factor=<NUM_LIT:3>):
if annotation is None:<EOL><INDENT>annotation = np.array([])<EOL><DEDENT>n = len(annotation)<EOL>binned_positions = [annotation[i] for i in range(n) if<EOL>i % subsampling_factor == <NUM_LIT:0>]<EOL>if len(binned_positions) == <NUM_LIT:0>:<EOL><INDENT>binned_positions.append(<NUM_LIT:0>)<EOL><DEDENT>return np.array(binned_positions)<EOL>
Perform binning on genome annotations such as contig information or bin
    positions.