def iqa_func_wrapper(iqa_compute_function, img1, img2, **kwargs):
    """
    :param iqa_compute_function: iqa compute function to be called
    :param img1:
    :param img2:
    :param kwargs: any additional arguments for IQA functions
    :return:
    """

    # make a copy to avoid any modifications to the original images
    img_iqa_1 = img1.copy()
    img_iqa_2 = img2.copy()

    return iqa_compute_function(img_iqa_1, img_iqa_2, **kwargs)