def test_use_nfeats():
    filtsz = [random.randint(1, 10) for _ in range(random.randint(2, 6))]
    input_nfeat = random.randint(1, 100)
    gold_nfeats = ([input_nfeat] * len(filtsz))
    (_, nfeat) = calc_nfeats(filtsz, None, None, nfeats=input_nfeat)
    assert (nfeat == gold_nfeats)
def test_use_nfeats():
    filtsz = [random.randint(1, 10) for _ in range(random.randint(2, 6))]
    input_nfeat = random.randint(1, 100)
    gold_nfeats = ([input_nfeat] * len(filtsz))
    (_, nfeat) = calc_nfeats(filtsz, None, None, nfeats=input_nfeat)
    assert (nfeat == gold_nfeats)