code: def GnnNetsGC2valueFunc(gnnNets, target_class):
      def value_func(batch):
          with torch.no_grad():
              logits = gnnNets(data=batch)
              probs = F.softmax(logits, dim=-1)
              score = probs[:, target_class]
          return score
  
      return value_func
  
imports: import copy
  import torch
  import numpy
  from scipy.special import comb
  from itertools import combinations
  import torch.nn.functional
  from torch_geometric.utils import to_networkx
  from torch_geometric.data import Data, Batch, Dataset
  from torch_geometric.loader import DataLoader
label_desc: Use image node_id 1 for calling a global function with example usage: GnnNetsGC2valueFunc(gnnNets, target_class) and returns: value_func, score