def test_extract_tuple():
    filt_feat = [(random.randint(1, 10), random.randint(10, 20)) for _ in range(random.randint(2, 6))]
    gold_filtsz = tuple((filter_and_size[0] for filter_and_size in filt_feat))
    gold_nfeats = tuple((filter_and_size[1] for filter_and_size in filt_feat))
    (filtsz, nfeats) = calc_nfeats(filt_feat)
    assert (filtsz == gold_filtsz)
    assert (nfeats == gold_nfeats)
def test_extract_tuple():
    filt_feat = [(random.randint(1, 10), random.randint(10, 20)) for _ in range(random.randint(2, 6))]
    gold_filtsz = tuple((filter_and_size[0] for filter_and_size in filt_feat))
    gold_nfeats = tuple((filter_and_size[1] for filter_and_size in filt_feat))
    (filtsz, nfeats) = calc_nfeats(filt_feat)
    assert (filtsz == gold_filtsz)
    assert (nfeats == gold_nfeats)