def get_desc(self, item, non_language_set=False):
    if (type(item) == str):
        entity = self.get_entity(item)
        if (entity == 'deleted'):
            return (entity, 'none')
        descriptions = entity['descriptions']
    elif (type(item) == dict):
        if ('descriptions' in item):
            descriptions = item['descriptions']
    for l in self.languages:
        if (l in descriptions):
            return (descriptions[l]['value'], l)
    if non_language_set:
        all_descriptions = list(descriptions.keys())
        if (len(all_descriptions) > 0):
            return (descriptions[all_descriptions[0]]['value'], all_descriptions[0])
    return ('no-desc', 'none')
def get_desc(self, item, non_language_set=False):
    if (type(item) == str):
        entity = self.get_entity(item)
        if (entity == 'deleted'):
            return (entity, 'none')
        descriptions = entity['descriptions']
    elif (type(item) == dict):
        if ('descriptions' in item):
            descriptions = item['descriptions']
    for l in self.languages:
        if (l in descriptions):
            return (descriptions[l]['value'], l)
    if non_language_set:
        all_descriptions = list(descriptions.keys())
        if (len(all_descriptions) > 0):
            return (descriptions[all_descriptions[0]]['value'], all_descriptions[0])
    return ('no-desc', 'none')