<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def layers(self, rev=True):
 """ Get list of DockerImage for every layer in image :param rev: get layers rev :return: list of DockerImages """

        image_layers = [
            DockerImage(None, identifier=x, pull_policy=DockerImagePullPolicy.NEVER)
            for x in self.get_layer_ids()
        ]
        if not rev:
            image_layers.reverse()
        return image_layers