def fetch_image(self, url=None):
        """
        >>> Product('DGKFL06JDHJP').fetch_image() # doctest: +ELLIPSIS
        Traceback (most recent call last):
        ...
        GsxError: No URL to fetch product image
        """
        url = url or self.imageURL

        if url is None:
            raise GsxError("No URL to fetch product image")

        try:
            return urllib.urlretrieve(url)[0]
        except Exception as e:
            raise GsxError("Failed to fetch product image: %s" % e)
dataset/ETHPy150Open filipp/py-gsxws/gsxws/products.py/Product.fetch_image/original