code: def test_dgi_deprecated_no_generator():
      G = example_graph_random()
      generator = FullBatchNodeGenerator(G)
  
      with pytest.warns(
          DeprecationWarning,
          match="The 'corrupted_generator' parameter should be set",
      ):
          DeepGraphInfomax(
              GCN(
                  generator=generator,
                  activations=["relu"],
                  layer_sizes=[4],
              ),
          )
  
file_path: stellargraph/tests/layer/test_deep_graph_infomax.py
imports: from stellargraph.layer import *
  from stellargraph.mapper import *
  from ..test_utils.graphs import example_graph_random
  from ..None import require_gpu, test_utils
  import tensorflow
  import pytest
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: test_dgi_deprecated_no_generator() without return types