def METHOD_NAME(chain):
    genesis = chain.get_canonical_block_by_number(0)
    (
        block_1,
        block_2,
        block_3,
        block_4,
        block_5,
    ) = [chain.mine_block() for _ in range(5)]
    header = block_5.header
    assert header.block_number == 5
    assert chain.get_ancestors(0, header) == ()
    assert chain.get_ancestors(1, header) == (block_4,)
    assert chain.get_ancestors(2, header) == (block_4, block_3)
    assert chain.get_ancestors(3, header) == (block_4, block_3, block_2)
    assert chain.get_ancestors(4, header) == (block_4, block_3, block_2, block_1)
    assert chain.get_ancestors(5, header) == (
        block_4,
        block_3,
        block_2,
        block_1,
        genesis,
    )
    assert chain.get_ancestors(6, header) == (
        block_4,
        block_3,
        block_2,
        block_1,
        genesis,
    )
    assert chain.get_ancestors(10, header) == (
        block_4,
        block_3,
        block_2,
        block_1,
        genesis,
    )