code: def test_deprecated_model_functions():
      G, _ = create_graph_features()
  
      # full batch models
      generator = FullBatchNodeGenerator(G)
      for model_type in [GCN, GAT, PPNP, APPNP]:
          sg_model = model_type(
              generator=generator, layer_sizes=[4], activations=["relu"]
          )
          _deprecated_test(sg_model)
  
      # test DeepGraphInfomax here because it needs a fullbatch model
      sg_model = DeepGraphInfomax(sg_model)
      _deprecated_test(sg_model)
  
      # models with layer_sizes and activations args
      generators = [
          ClusterNodeGenerator(G),
          HinSAGENodeGenerator(
              G, batch_size=1, num_samples=[2], head_node_type="default"
          ),
          GraphSAGENodeGenerator(G, batch_size=1, num_samples=[2]),
          RelationalFullBatchNodeGenerator(G),
          PaddedGraphGenerator([G]),
      ]
  
      model_types = [
          ClusterGCN,
          HinSAGE,
          GraphSAGE,
          RGCN,
          GCNSupervisedGraphClassification,
      ]
  
      for generator, model_type in zip(generators, model_types):
          sg_model = model_type(
              layer_sizes=[2], activations=["relu"], generator=generator
          )
          _deprecated_test(sg_model)
  
      # models with embedding_dimension arg
      model_types = [WatchYourStep, DistMult, ComplEx, Attri2Vec]
      generators = [
          AdjacencyPowerGenerator(G),
          KGTripleGenerator(G, batch_size=1),
          KGTripleGenerator(G, batch_size=1),
      ]
  
      for generator, model_type in zip(generators, model_types):
          sg_model = model_type(
              generator=generator, embedding_dimension=2
          )
          _deprecated_test(sg_model)
  
      # outlier models that need to be treated separately
  
      generator = Attri2VecLinkGenerator(G, batch_size=1)
      sg_model = Attri2Vec(
          generator=generator, layer_sizes=[4], activation="sigmoid"
      )
      _deprecated_test(sg_model)
  
      G = example_graph(feature_size=1, is_directed=True)
      generator = DirectedGraphSAGENodeGenerator(
          G, batch_size=1, in_samples=[2], out_samples=[2]
      )
      sg_model = DirectedGraphSAGE(
          generator=generator, layer_sizes=[4], activations=["relu"]
      )
      _deprecated_test(sg_model)
  
file_path: stellargraph/tests/layer/test_misc.py
imports: import tensorflow
  from tensorflow import keras
  import numpy
  import scipy.sparse
  import pytest
  from stellargraph.layer.misc import *
  from ..test_utils.graphs import create_graph_features, example_graph
  from stellargraph.mapper import *
  from stellargraph.layer import *
label_desc: Use image node_id 7 for calling a global function with example usage: test_deprecated_model_functions() without return types