def METHOD_NAME(self, mocker):
    response_dict = {
        "images": [
            {
                "imageId": "aws-parallelcluster-3-0-0-amzn2-hvm-x86-64-202107121836",
                "imageBuildStatus": "BUILD_COMPLETE",
                "region": "us-east-2",
                "version": "3.0.0",
            },
            {
                # "imageId": "dlami-aws-parallelcluster-3-0-0-amzn2-hvm-x86-64-202106181651",
                "imageId": "dlami-aws-parallelcluster-3-0-0-truncated",
                "imageBuildStatus": "BUILD_COMPLETE",
                "region": "us-east-2",
                "version": "3.0.0",
            },
        ]
    }
    response = ListImagesResponseContent().from_dict(response_dict)
    list_images_mock = mocker.patch(
        "pcluster.api.controllers.image_operations_controller.list_images",
        return_value=response,
        autospec=True,
    )
    out = run(["list-images", "--image-status", "AVAILABLE"])
    assert_that(out).is_equal_to(response_dict)
    assert_that(list_images_mock.call_args).is_length(2)  # this is due to the decorator on list_clusters
    expected_args = {"region": None, "next_token": None, "image_status": "AVAILABLE"}
    list_images_mock.assert_called_with(**expected_args)