code: def test_corrupt_full_batch_generator(sparse, num_nodes):
      G = example_graph_random(n_nodes=20)
  
      generator = FullBatchNodeGenerator(G, sparse=sparse)
  
      nodes = G.nodes()[:num_nodes]
      gen = CorruptedGenerator(generator).flow(nodes)
  
      [shuffled_feats, features, *_], targets = gen[0]
  
      assert features.shape == shuffled_feats.shape
  
      # check shuffled_feats are feats
      assert not np.array_equal(features, shuffled_feats)
  
      # check that all feature vecs in shuffled_feats correspond to a feature vec in features
      np.testing.assert_array_equal(
          _sorted_feats([shuffled_feats]), _sorted_feats([features])
      )
  
      assert targets.shape == (1, num_nodes, 2)
  
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 9 for calling a global function with example usage: test_corrupt_full_batch_generator(sparse, num_nodes) without return types