code: def test_corrupted_invalid_index():
      batch = [_data(0), _data(1)]
      corr_gen = CorruptedGenerator(
          DummyGenerator([[0], [2, 1, 3]], data=[batch])
      )
  
      corr_seq = corr_gen.flow()
  
      with pytest.raises(
          ValueError,
          match=r"corrupt_index_groups \(group number 1\): expected valid .* 2 input tensors, found some too large: 2, 3",
      ):
          corr_seq[0]
  
file_path: stellargraph/tests/mapper/test_corrupted.py
imports: import pytest
  import numpy
  from stellargraph.mapper import *
  from ..test_utils.graphs import example_graph_random
label_desc: Use image node_id 3 for calling a global function with example usage: test_corrupted_invalid_index() without return types