code: def unique_edge_pairs(edge_index):
      return set(map(tuple, edge_index.t().tolist()))
  
file_path: pytorch_geometric/test/loader/test_link_neighbor_loader.py
imports: import pytest
  import torch
  from torch_geometric.data import Data, HeteroData
  from torch_geometric.loader import LinkNeighborLoader
  from torch_geometric.testing import MyFeatureStore, MyGraphStore, get_random_edge_index, onlyNeighborSampler, withCUDA, withPackage
label_desc: Use image node_id 1 for calling a global function with example usage: unique_edge_pairs(edge_index) and returns: set