def fetch_image(self):
        """
        Tries the fetch the product image for this service part
        """
        if self.partNumber is None:
            raise GsxError("Cannot fetch part image without part number")

        image = "%s_350_350.gif" % self.partNumber
        url = IMAGE_URL % image
        tmpfile = tempfile.mkstemp(suffix=image)

        try:
            return urllib.urlretrieve(url, tmpfile[1])[0]
        except Exception, e:
            raise GsxError("Failed to fetch part image: %s" % e)
dataset/ETHPy150Open filipp/py-gsxws/gsxws/parts.py/Part.fetch_image/original