def _get_used_lun_ids_for_mappings(mappings):
 used_luns = set(map((lambda lun: int(lun['lun'])), mappings))
 used_luns.add(0)
 return used_luns

def _get_used_lun_ids_for_mappings ( mappings ) : used_luns = set ( map ( ( lambda lun : int ( lun [ 'lun' ] ) ) , mappings ) ) used_luns . add ( 0 ) return used_luns
returns used luns when provided with mappings .