def get_drop_connect_rate(init_rate, block_num, total_blocks):
    'Get drop connect rate for the ith block.'
    if (init_rate is not None):
        return ((init_rate * float(block_num)) / total_blocks)
    else:
        return None
Get drop connect rate for the ith block.
def get_drop_connect_rate(init_rate, block_num, total_blocks):
    
    if (init_rate is not None):
        return ((init_rate * float(block_num)) / total_blocks)
    else:
        return None