def get_self_atari_size(state, maximum=8):
	"""A feature encoding the size of the own-stone group that is put into atari by playing at a location
	"""
	planes = np.zeros((maximum, state.size, state.size))

	for (x, y) in state.get_legal_moves():
		# make a copy of the liberty/group sets at (x,y) so we can manipulate them
		lib_set_after = set(state.liberty_sets[x][y])
		group_set_after = set()
		group_set_after.add((x, y))
		for neighbor_group in state.get_groups_around((x, y)):
			# if the neighboring group is of the same color as the current player
			# then playing here will connect this stone to that group
			(gx, gy) = next(iter(neighbor_group))
			if state.board[gx, gy] == state.current_player:
				lib_set_after |= state.liberty_sets[gx][gy]
				group_set_after |= state.group_sets[gx][gy]
		if lib_set_after in (x, y):
			lib_set_after.remove((x, y))
		# check if this move resulted in atari
		if len(lib_set_after) == 1:
			group_size = len(group_set_after)
			# 0th plane used for size=1, so group_size-1 is the index
			planes[min(group_size - 1, maximum - 1), x, y] = 1
	return planes
dataset/ETHPy150Open Rochester-NRT/RocAlphaGo/AlphaGo/preprocessing/preprocessing.py/get_self_atari_size/swapped operands of `in`