def assets_set_asset(self, asset_name, file, **kwargs):
content_type = mimetypes.MimeTypes().guess_type(file)<EOL>files = {<EOL>asset_name: (file, open(file, '<STR_LIT:rb>'), content_type[<NUM_LIT:0>], {'<STR_LIT>': '<STR_LIT:0>'}),<EOL>}<EOL>return self.__call_api_post('<STR_LIT>', kwargs=kwargs, use_json=False, files=files)<EOL>
Set an asset image by name.