def METHOD_NAME(self, label, mapping_dict):
    if not isinstance(label, int):
        label = int(label)
    if label in mapping_dict['label2dec'].keys():
        num = mapping_dict['label2dec'][label]
    else:
        num = -1
    return num