def create(self):
params = {'<STR_LIT:name>': self.name,<EOL>'<STR_LIT>': self.region,<EOL>'<STR_LIT:url>': self.url,<EOL>'<STR_LIT>': self.distribution,<EOL>'<STR_LIT:description>': self.description,<EOL>'<STR_LIT>': self.tags}<EOL>data = self.get_data('<STR_LIT>', type=POST, params=params)<EOL>if data:<EOL><INDENT>for attr in data['<STR_LIT:image>'].keys():<EOL><INDENT>setattr(self, attr, data['<STR_LIT:image>'][attr])<EOL><DEDENT><DEDENT>return self<EOL>
Creates a new custom DigitalOcean Image from the Linux virtual machine
image located at the provided `url`.