def METHOD_NAME(data):
	N=len(data.shape)
	# width*height
	if N==2: 
		channels = [data]
	# width*height*channel
	elif N==3: 
		channels = [data[  :,:,C] for C in range(data.shape[-1])]
	# width*height*depth*channel
	elif N==4: 
		channels = [data[:,:,:,C] for C in range(data.shape[-1])]
	else:
		raise Exception("internal error")	
	return channels