def prepare_image_inputs(self):
        """This function prepares a list of PIL images."""

        image_input = np.random.randint(255, size=(3, 30, 400), dtype=np.uint8)

        image_input = Image.fromarray(np.moveaxis(image_input, 0, -1))

        return image_input
This function prepares a list of PIL images.
dpkd/transformers/tests/models/mgp_str/test_processor_mgp_str.py