def get_dims(self):
if self._info['<STR_LIT>'] != <NUM_LIT:0>:<EOL><INDENT>dims = self._info['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>dims = ()<EOL><DEDENT>return dims<EOL>
get the shape of the image.  Returns () for empty