def prepare_image_inputs(self):
        """
        This function prepares a list of random PIL images of the same fixed size.
        """

        image_inputs = [np.random.randint(255, size=(3, 30, 400), dtype=np.uint8)]

        image_inputs = [Image.fromarray(np.moveaxis(x, 0, -1)) for x in image_inputs]

        return image_inputs

        This function prepares a list of random PIL images of the same fixed size.
        
dpkd/transformers/tests/models/pix2struct/test_processor_pix2struct.py