def METHOD_NAME(docker_image):
    project_dir = Path(__file__).parent / "fixtures/no-predictor-project"
    subprocess.run(
        ["cog", "build", "-t", docker_image],
        cwd=project_dir,
        check=True,
    )
    assert docker_image in str(
        subprocess.run(["docker", "images"], capture_output=True, check=True).stdout
    )
    image = json.loads(
        subprocess.run(
            ["docker", "image", "inspect", docker_image],
            capture_output=True,
            check=True,
        ).stdout
    )
    labels = image[0]["Config"]["Labels"]
    assert len(labels["run.cog.version"]) > 0
    assert json.loads(labels["run.cog.config"]) == {"build": {"python_version": "3.8"}}
    assert "run.cog.openapi_schema" not in labels
    # Deprecated. Remove for 1.0.
    assert len(labels["org.cogmodel.cog_version"]) > 0
    assert json.loads(labels["org.cogmodel.config"]) == {
        "build": {"python_version": "3.8"}
    }
    assert "org.cogmodel.openapi_schema" not in labels