def get_layer_ids(self, rev=True):
cmdline = ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", self._id or self.get_id()]<EOL>layers = [layer for layer in run_cmd(cmdline, return_output=True)]<EOL>if not rev:<EOL><INDENT>layers = layers.reverse()<EOL><DEDENT>return layers<EOL>
Get IDs of image layers

:param rev: get layers reversed
:return: list of strings