import tensorflow as tf


        original_image_shape = image.shape
        
        simulated_image = tf.transpose(tf.matmul(product2, tf.reshape(tf.transpose(image, perm=[2, 0, 1]), (image.shape[2], image.shape[0] * image.shape[1]))), perm=[1, 0])

        return tf.reshape(simulated_image, original_image_shape)