code: def test_index_select_out_of_range():
      with pytest.raises(IndexError, match="out of range"):
          index_select(torch.randn(3, 5), torch.tensor([0, 2, 3]))
  
imports: import pytest
  import torch
  from torch_geometric.loader.utils import index_select
label_desc: Use image node_id 2 for calling a global function with example usage: test_index_select_out_of_range() without return types