<filename>tests/test_versions/test_v0_1.py
def test_load_raw_v0_1(unet2d_nuclei_broad_v0_1_path):
    from bioimageio.spec.model.v0_1 import load_raw_node, raw_nodes

    raw_model = load_raw_node(unet2d_nuclei_broad_v0_1_path)
    assert isinstance(raw_model, raw_nodes.Model)
    assert (unet2d_nuclei_broad_v0_1_path.parent / raw_model.documentation).exists()


def test_load_v0_1(unet2d_nuclei_broad_v0_1_path):
    from bioimageio.spec.model.v0_1 import load_node, nodes

    model = load_node(unet2d_nuclei_broad_v0_1_path)
    assert isinstance(model, nodes.Model)
    assert model.documentation.exists()

<filename>tests/test_versions/test_v0_1.py
def test_load_raw_v0_1(unet2d_nuclei_broad_v0_1_path):
    from bioimageio.spec.model.v0_1 import load_raw_node, raw_nodes

    raw_model = load_raw_node(unet2d_nuclei_broad_v0_1_path)
    assert isinstance(raw_model, raw_nodes.Model)
    assert (unet2d_nuclei_broad_v0_1_path.parent / raw_model.documentation).exists()


def test_load_v0_1(unet2d_nuclei_broad_v0_1_path):
    from bioimageio.spec.model.v0_1 import load_node, nodes

    model = load_node(unet2d_nuclei_broad_v0_1_path)
    assert isinstance(model, nodes.Model)
    assert model.documentation.exists()
