def test_peek_into():
    r1, g1 = peek_into(i for i in [])
    assert r1
    assert len(list(g1)) == 0
    r2, g2 = peek_into(i for i in range(100))
    assert not r2
    assert len(list(g2)) == 100
dataset/ETHPy150Open naiquevin/pipdeptree/tests/test_pipdeptree.py/test_peek_into/original