def create(self, *args, **kwargs):
if not args and not kwargs:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>attributes = args[<NUM_LIT:0>] if args else kwargs<EOL>attributes = dict((k, v) for k, v in attributes.iteritems() if k in self.OPTS_KEYS_TO_PERSIST)<EOL>_, _, product = self.http_client.post("<STR_LIT>", body=attributes)<EOL>return product<EOL>
Create a product

Create a new product

:calls: ``post /products``
:param tuple *args: (optional) Single object representing Product resource.
:param dict **kwargs: (optional) Product attributes.
:return: Dictionary that support attriubte-style access and represents newely created Product resource.
:rtype: dict