def get_size(self, add_padding=True, round_up=True, return_mb=True):
if not hasattr(self,'<STR_LIT>'):<EOL><INDENT>bot.error('<STR_LIT>')<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>size = <NUM_LIT>  <EOL>for schemaVersion, manifest in self.manifests.items():<EOL><INDENT>if "<STR_LIT>" in manifest:<EOL><INDENT>size = <NUM_LIT:0><EOL>for layer in manifest["<STR_LIT>"]:<EOL><INDENT>if "<STR_LIT:size>" in layer:<EOL><INDENT>size += layer['<STR_LIT:size>']<EOL><DEDENT><DEDENT>if add_padding is True:<EOL><INDENT>size = size * <NUM_LIT:5><EOL><DEDENT>if return_mb is True:<EOL><INDENT>size = size / (<NUM_LIT> * <NUM_LIT>)  <EOL><DEDENT>if round_up is True:<EOL><INDENT>size = math.ceil(size)<EOL><DEDENT>size = int(size)<EOL><DEDENT>return size<EOL><DEDENT>
get_size will return the image size (must use v.2.0 manifest)

       Parameters
       ==========
       add_padding: if true, return reported size * 5
       round_up: if true, round up to nearest integer
       return_mb: if true, defaults bytes are converted to MB