import clr

def process_input(func, input):
	if isinstance(input, list): return [func(x) for x in input]
	else: return func(input)
	
def WSSessionID(wssess):
	if wssess.__repr__() == 'WorksharingSession': return wssess.ID
	else: return None

OUT = process_input(WSSessionID,IN[0])