def METHOD_NAME(self, image_id_arg, region_arg, mocker, test_datadir):
    response_dict = {
        "image": {
            "imageId": "image-id",
            "imageBuildStatus": "BUILD_IN_PROGRESS",
            "cloudformationStackStatus": "CREATE_IN_PROGRESS",
            "cloudformationStackArn": "arn:aws:cloudformation:eu-west-1:000000000000:stack/image-id/aaa",
            "region": "eu-west-1",
            "version": "3.0.0",
        }
    }
    response = BuildImageResponseContent().from_dict(response_dict)
    describe_clusters_mock = mocker.patch(
        "pcluster.api.controllers.image_operations_controller.build_image", return_value=response, autospec=True
    )
    path = str(test_datadir / "config.yaml")
    out = run(["build-image", "--image-configuration", path, image_id_arg, "image-id", region_arg, "eu-west-1"])
    assert_that(out).is_equal_to(response_dict)
    assert_that(describe_clusters_mock.call_args).is_length(2)  # this is due to the decorator on list_clusters
    expected_args = {
        "suppress_validators": None,
        "validation_failure_level": None,
        "dryrun": None,
        "rollback_on_failure": None,
        "region": "eu-west-1",
        "build_image_request_content": {"imageId": "image-id", "imageConfiguration": ""},
    }
    describe_clusters_mock.assert_called_with(**expected_args)