code: def test_remove_duplicates():
      node = torch.tensor([0, 1, 2, 3])
      out_node = torch.tensor([0, 4, 1, 5, 1, 6, 2, 7, 3, 8])
  
      out = SamplerOutput(out_node, None, None, None)
  
      src, node, _, _ = remove_duplicates(out, node)
  
      assert src.tolist() == [4, 5, 6, 7, 8]
      assert node.tolist() == [0, 1, 2, 3, 4, 5, 6, 7, 8]
  
imports: import torch
  from torch_geometric.distributed.utils import remove_duplicates
  from torch_geometric.sampler import SamplerOutput
label_desc: Use image node_id 1 for calling a global function with example usage: test_remove_duplicates() without return types