def get_item_types(self):
        if hasattr(self, "_item_types"):
            return self._item_types
        url = self._build_url('itemtypes')
        options = {
            'apikey': self._api_key,
            'tenantid': self._tenant
        }
        try:
            response = self._fetch_response(url, params=options)
        except:
            return ['ITEM',]
        try:
            self._item_types = response['itemTypes']['itemType']
            return self._item_types
        except __HOLE__:
            return ['ITEM',]
dataset/ETHPy150Open snowball-one/django-oscar-easyrec/easyrec/gateway.py/EasyRec.get_item_types