def create(self, product, data, store_view=None, identifierType=None):
        """
        Upload a new product image.

        :param product: ID or SKU of product
        :param data: `dict` of image data (label, position, exclude, types)
            Example: { 'label': 'description of photo',
                'position': '1', 'exclude': '0',
                'types': ['image', 'small_image', 'thumbnail']}
        :param store_view: Store view ID or Code
        :param identifierType: Defines whether the product or SKU value is
                               passed in the "product" parameter.

        :return: string - image file name
        """
        return self.call('catalog_product_attribute_media.create',
                [product, data, store_view, identifierType])
def create ( self , product , data , store_view = None , identifierType = None ) : return self . call ( 'catalog_product_attribute_media.create' , [ product , data , store_view , identifierType ] )
Upload a new product image.

        :param product: ID or SKU of product
        :param data: `dict` of image data (label, position, exclude, types)
            Example: { 'label': 'description of photo',
                'position': '1', 'exclude': '0',
                'types': ['image', 'small_image', 'thumbnail']}
        :param store_view: Store view ID or Code
        :param identifierType: Defines whether the product or SKU value is
                               passed in the "product" parameter.

        :return: string - image file name