<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_hflip(self, val):
 """Flip all the images in the animation list horizontally."""

        self.__horizontal_flip = val
        for image in self.images:
            image.h_flip = val