def METHOD_NAME(self, mock_image_build: Mock) -> None:
    plugins.v0.DictPlugin(
        {
            "name": "plugin1",
            "hooks": {
                "build-image": {
                    "service1": "service1:1.0.0",
                    "service2": "service2:2.0.0",
                }
            },
        }
    )
    plugins.load("plugin1")
    with temporary_root() as root:
        self.invoke_in_root(root, ["config", "save"])
        result = self.invoke_in_root(root, ["images", "build", "service1"])
    self.assertIsNone(result.exception)
    self.assertEqual(0, result.exit_code)
    mock_image_build.assert_called()
    self.assertIn("service1:1.0.0", mock_image_build.call_args[0])