def get_item(self, key):
        try:
            if self.game_store_items.get_resource(key).type == 'own':
                user_item = self.user_items.get(key)
                if user_item and user_item['amount'] > 1:
                    return {'amount': 1}
        except StoreError:
            pass
        return self.user_items[key]
dataset/ETHPy150Open turbulenz/turbulenz_local/turbulenz_local/models/apiv1/store.py/StoreUserGameItems.get_item/original