code: def test_neighbor_sampler_invalid_kwargs():
      # Ignore `collate_fn` and `dataset` arguments:
      edge_index = torch.tensor([[0, 1], [1, 0]])
      NeighborSampler(
          edge_index, sizes=[-1], collate_fn=None, dataset=None
      )
  
file_path: pytorch_geometric/test/loader/test_neighbor_sampler.py
imports: import numpy
  import torch
  from torch_geometric.loader import NeighborSampler
  from torch_geometric.nn.conv import GATConv, SAGEConv
  from torch_geometric.testing import onlyOnline, withPackage
  from torch_geometric.typing import SparseTensor
  from torch_geometric.utils import erdos_renyi_graph
label_desc: Use image node_id 2 for calling a global function with example usage: test_neighbor_sampler_invalid_kwargs() without return types