def get_datatype(self, item):
    try:
        if (type(item) == str):
            entity = self.get_entity(item)
            if (entity == 'deleted'):
                return entity
            datatype = entity['datatype']
        elif (type(item) == dict):
            datatype = item['datatype']
        return datatype
    except KeyError:
        return 'none'
def get_datatype(self, item):
    try:
        if (type(item) == str):
            entity = self.get_entity(item)
            if (entity == 'deleted'):
                return entity
            datatype = entity['datatype']
        elif (type(item) == dict):
            datatype = item['datatype']
        return datatype
    except KeyError:
        return 'none'