Based on the posted outputs it seems edge_index is a tuple containing a tensor and None.
If idx is set to 1, you would index the tuple and get the None value as the return value.
I’m not sure what the None represents, but in case you want to index the stored tensor, you would have to use edge_index[0][idx].