code: def pool_batch(perm, batch):
      return batch[perm]
  
imports: from typing import Optional
  import torch
  from torch_geometric.utils import coalesce, remove_self_loops, scatter
label_desc: Use image node_id 2 for calling a global function with example usage: pool_batch(perm, batch) and returns: batch